test_class.declarator: comparator = new CategorySummaryAmountDescendingComparator()
test_class.modifier: private final
test_class.original_string: private final CategorySummaryAmountDescendingComparator comparator = new CategorySummaryAmountDescendingComparator();
test_class.type: CategorySummaryAmountDescendingComparator
test_class.var_name: comparator
test_class.file: services/src/test/java/com/greensopinion/finance/services/reports/CategorySummaryAmountDescendingComparatorTest.java
test_class.identifier: CategorySummaryAmountDescendingComparatorTest
test_case.body: @Test
  	public void compareTo() {
  		CategorySummary summary1 = new CategorySummary("one", -1);
  		CategorySummary summary2 = new CategorySummary("two", -2);
  		assertEquals(0, comparator.compare(summary1, summary1));
  		assertEquals(0, comparator.compare(summary2, summary2));
  		assertEquals(1, comparator.compare(summary1, summary2));
  		assertEquals(-1, comparator.compare(summary2, summary1));
  	}
test_case.class_method_signature: CategorySummaryAmountDescendingComparatorTest.compareTo()
test_case.full_signature: @Test public void compareTo()
test_case.identifier: compareTo
test_case.invocations: assertEquals compare assertEquals compare assertEquals compare assertEquals compare
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void compareTo()
focal_class.file: services/src/main/java/com/greensopinion/finance/services/reports/CategorySummaryAmountDescendingComparator.java
focal_class.identifier: CategorySummaryAmountDescendingComparator
focal_class.interfaces: implements Comparator<CategorySummary>
focal_class.class_method_signature: CategorySummaryAmountDescendingComparator.compare(CategorySummary o1, CategorySummary o2)
focal_class.full_signature: @Override public int compare(CategorySummary o1, CategorySummary o2)
focal_class.identifier: compare
focal_class.modifiers: @Override public
focal_class.parameters: (CategorySummary o1, CategorySummary o2)
focal_class.return: int
focal_class.signature: int compare(CategorySummary o1, CategorySummary o2)
focal_method.body: @Override
  	public int compare(CategorySummary o1, CategorySummary o2) {
  		int i = Long.valueOf(o1.getAmount()).compareTo(o2.getAmount());
  		if (i == 0) {
  			i = o1.getName().compareToIgnoreCase(o2.getName());
  		}
  		return i;
  	}
focal_method.class_method_signature: CategorySummaryAmountDescendingComparator.compare(CategorySummary o1, CategorySummary o2)
focal_method.full_signature: @Override public int compare(CategorySummary o1, CategorySummary o2)
focal_method.identifier: compare
focal_method.invocations: compareTo valueOf getAmount getAmount compareToIgnoreCase getName getName
focal_method.modifiers: @Override public
focal_method.parameters: (CategorySummary o1, CategorySummary o2)
focal_method.return: int
focal_method.signature: int compare(CategorySummary o1, CategorySummary o2)