test_class.declarator: gtetFilter
test_class.original_string: GTETFilter gtetFilter;
test_class.type: GTETFilter
test_class.var_name: gtetFilter
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/GTETFilterTest.java
test_class.identifier: GTETFilterTest
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(gtetFilter).getAttributeValue(comparable);
      List<Object> actualObjects = gtetFilter.filter(objects);
      assertEquals(comparable, actualObjects.get(0));
      assertEquals(comparable, actualObjects.get(1));
    }
test_case.class_method_signature: GTETFilterTest.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 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/GTETFilter.java
focal_class.identifier: GTETFilter
focal_class.class_method_signature: GTETFilter.GTETFilter(String attributeName, Object value)
focal_class.full_signature: public  GTETFilter(String attributeName, Object value)
focal_class.identifier: GTETFilter
focal_class.modifiers: public
focal_class.parameters: (String attributeName, Object value)
focal_class.signature:  GTETFilter(String attributeName, Object value)
focal_class.class_method_signature: GTETFilter.filter(final List<Object> objects)
focal_class.full_signature: @SuppressWarnings({"unchecked", "rawtypes"}) public List<Object> filter(final List<Object> objects)
focal_class.identifier: filter
focal_class.modifiers: @SuppressWarnings({"unchecked", "rawtypes"}) 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 ArithmeticFilter
focal_method.body: @SuppressWarnings({"unchecked", "rawtypes"})
    public List<Object> filter(final List<Object> objects) {
      final List<Object> result = new ArrayList<Object>();
      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: GTETFilter.filter(final List<Object> objects)
focal_method.full_signature: @SuppressWarnings({"unchecked", "rawtypes"}) public List<Object> filter(final List<Object> objects)
focal_method.identifier: filter
focal_method.invocations: getAttributeValue compareTo add
focal_method.modifiers: @SuppressWarnings({"unchecked", "rawtypes"}) public
focal_method.parameters: (final List<Object> objects)
focal_method.return: List<Object>
focal_method.signature: List<Object> filter(final List<Object> objects)