test_class.declarator: etFilter
test_class.original_string: ETFilter etFilter;
test_class.type: ETFilter
test_class.var_name: etFilter
test_class.declarator: comparable
test_class.modifier: @Mock
test_class.original_string: @Mock
    Comparable comparable;
test_class.type: Comparable
test_class.var_name: comparable
test_class.file: imcache-core/src/test/java/com/cetsoft/imcache/cache/search/filter/ETFilterTest.java
test_class.identifier: ETFilterTest
test_case.body: @Test
    public void filter() {
      List<Object> objects = new ArrayList<Object>();
      objects.add(comparable);
      objects.add(comparable);
      doReturn(0).doReturn(1).when(comparable).compareTo(any());
      doReturn(comparable).when(etFilter).getAttributeValue(comparable);
      List<Object> actualObjects = etFilter.filter(objects);
      assertEquals(comparable, actualObjects.get(0));
    }
test_case.class_method_signature: ETFilterTest.filter()
test_case.full_signature: @Test public void filter()
test_case.identifier: filter
test_case.invocations: add add compareTo when doReturn doReturn any getAttributeValue when doReturn filter assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void filter()
focal_class.file: imcache-core/src/main/java/com/cetsoft/imcache/cache/search/filter/ETFilter.java
focal_class.identifier: ETFilter
focal_class.class_method_signature: ETFilter.ETFilter(String attributeName, Object expectedValue)
focal_class.full_signature: public  ETFilter(String attributeName, Object expectedValue)
focal_class.identifier: ETFilter
focal_class.modifiers: public
focal_class.parameters: (String attributeName, Object expectedValue)
focal_class.signature:  ETFilter(String attributeName, Object expectedValue)
focal_class.class_method_signature: ETFilter.filter(List<Object> objects)
focal_class.full_signature: @SuppressWarnings({"rawtypes", "unchecked"}) public List<Object> filter(List<Object> objects)
focal_class.identifier: filter
focal_class.modifiers: @SuppressWarnings({"rawtypes", "unchecked"}) public
focal_class.parameters: (List<Object> objects)
focal_class.return: List<Object>
focal_class.signature: List<Object> filter(List<Object> objects)
focal_class.superclass: extends ArithmeticFilter
focal_method.body: @SuppressWarnings({"rawtypes", "unchecked"})
    public List<Object> filter(List<Object> objects) {
      final List<Object> result = new ArrayList<Object>(objects.size());
      for (final Object object : objects) {
        final Comparable objectValue = (Comparable) getAttributeValue(object);
        if (objectValue.compareTo(value) == 0) {
          result.add(object);
        }
      }
      return result;
    }
focal_method.class_method_signature: ETFilter.filter(List<Object> objects)
focal_method.full_signature: @SuppressWarnings({"rawtypes", "unchecked"}) public List<Object> filter(List<Object> objects)
focal_method.identifier: filter
focal_method.invocations: size getAttributeValue compareTo add
focal_method.modifiers: @SuppressWarnings({"rawtypes", "unchecked"}) public
focal_method.parameters: (List<Object> objects)
focal_method.return: List<Object>
focal_method.signature: List<Object> filter(List<Object> objects)