test_class.declarator: orFilter
test_class.original_string: OrFilter orFilter;
test_class.type: OrFilter
test_class.var_name: orFilter
test_class.declarator: filter
test_class.modifier: @Mock
test_class.original_string: @Mock
    Filter filter;
test_class.type: Filter
test_class.var_name: filter
test_class.file: imcache-core/src/test/java/com/cetsoft/imcache/cache/search/filter/OrFilterTest.java
test_class.identifier: OrFilterTest
test_case.body: @Test
    public void filter() {
      Object object1 = new Object();
      Object object2 = new Object();
      Object object3 = new Object();
      List<Object> list1 = new ArrayList<Object>();
      list1.add(object1);
      list1.add(object2);
      List<Object> list2 = new ArrayList<Object>();
      list2.add(object2);
      list2.add(object3);
      doReturn(list1).doReturn(list2).when(filter).filter(anyList());
      List<Object> actualObjects = orFilter.filter(list1);
      assertTrue(actualObjects.contains(object1));
      assertTrue(actualObjects.contains(object2));
      assertTrue(actualObjects.contains(object3));
    }
test_case.class_method_signature: OrFilterTest.filter()
test_case.full_signature: @Test public void filter()
test_case.identifier: filter
test_case.invocations: add add add add filter when doReturn doReturn anyList filter assertTrue contains assertTrue contains assertTrue contains
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void filter()
focal_class.declarator: filters
focal_class.modifier: private
focal_class.original_string: private Filter[] filters;
focal_class.type: Filter[]
focal_class.var_name: filters
focal_class.file: imcache-core/src/main/java/com/cetsoft/imcache/cache/search/filter/OrFilter.java
focal_class.identifier: OrFilter
focal_class.class_method_signature: OrFilter.OrFilter(Filter... filters)
focal_class.full_signature: public  OrFilter(Filter... filters)
focal_class.identifier: OrFilter
focal_class.modifiers: public
focal_class.parameters: (Filter... filters)
focal_class.signature:  OrFilter(Filter... filters)
focal_class.class_method_signature: OrFilter.getFilters()
focal_class.full_signature: public Filter[] getFilters()
focal_class.identifier: getFilters
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Filter[]
focal_class.signature: Filter[] getFilters()
focal_class.class_method_signature: OrFilter.filter(final List<Object> objects)
focal_class.full_signature: public List<Object> filter(final List<Object> objects)
focal_class.identifier: filter
focal_class.modifiers: public
focal_class.parameters: (final List<Object> objects)
focal_class.return: List<Object>
focal_class.signature: List<Object> filter(final List<Object> objects)
focal_class.superclass: extends LogicalFilter
focal_method.body: public List<Object> filter(final List<Object> objects) {
      final Set<Object> results = new HashSet<Object>();
      for (final Filter filter : filters) {
        results.addAll(filter.filter(objects));
      }
      return new ArrayList<>(results);
    }
focal_method.class_method_signature: OrFilter.filter(final List<Object> objects)
focal_method.full_signature: public List<Object> filter(final List<Object> objects)
focal_method.identifier: filter
focal_method.invocations: addAll filter
focal_method.modifiers: public
focal_method.parameters: (final List<Object> objects)
focal_method.return: List<Object>
focal_method.signature: List<Object> filter(final List<Object> objects)