예제 #1
0
  @Test
  public void testGetFilters() {
    assertThat(category.getFilterTypes())
        .containsOnly(
            new StringEquals(),
            new StringNotEquals(),
            new StartsWith(),
            new EndsWith(),
            new EqualsIgnoreCase(),
            new NotEqualsIgnoreCase(),
            new Contains());

    final IFilterType<String> filterType = category.getFilterTypes().get(0);
    filterType.setFilterValue("12345");

    assertThat(category.getFilterTypes().contains(filterType)).isFalse();
  }