示例#1
0
  @Test
  public void resultCanBeExtractedAsHashSet() {
    assertThat($(integerInput).asHashSet(), instanceOf(HashSet.class));

    Collection<String> stringInputAsSet = $(stringInput).asCollection();

    assertTrue($(stringInput).asHashSet().containsAll(stringInputAsSet));
    assertTrue(stringInputAsSet.containsAll($(stringInput).asHashSet()));
  }
示例#2
0
  @Test
  public void resultCanBeExtractedAsLinkedList() {
    assertThat($(integerInput).asLinkedList(), instanceOf(LinkedList.class));

    assertEquals(stringInput, $(stringInput).asLinkedList());
  }
示例#3
0
  @Test
  public void resultCanBeExtractedAsCollection() {
    assertThat($(integerInput).asCollection(), instanceOf(Collection.class));

    assertEquals(stringInput, $(stringInput).asCollection());
  }