test_class.file: OpenSOC-Pcap_Service/src/test/java/com/opensoc/pcapservice/CellTimestampComparatorTest.java
test_class.identifier: CellTimestampComparatorTest
test_case.body: @Test
    public void test_less() {
      // mocking
      Cell cell1 = Mockito.mock(Cell.class);
      Mockito.when(cell1.getTimestamp()).thenReturn(13945345808L);
      Cell cell2 = Mockito.mock(Cell.class);
      Mockito.when(cell2.getTimestamp()).thenReturn(13845345808L);
  
      CellTimestampComparator comparator = new CellTimestampComparator();
  
      // actual call and verify
      Assert.assertTrue(comparator.compare(cell2, cell1) == -1);
  
    }
test_case.class_method_signature: CellTimestampComparatorTest.test_less()
test_case.full_signature: @Test public void test_less()
test_case.identifier: test_less
test_case.invocations: mock thenReturn when getTimestamp mock thenReturn when getTimestamp assertTrue compare
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_less()
focal_class.file: OpenSOC-Pcap_Service/src/main/java/com/opensoc/pcapservice/CellTimestampComparator.java
focal_class.identifier: CellTimestampComparator
focal_class.interfaces: implements Comparator<Cell>
focal_class.class_method_signature: CellTimestampComparator.compare(Cell o1, Cell o2)
focal_class.full_signature: public int compare(Cell o1, Cell o2)
focal_class.identifier: compare
focal_class.modifiers: public
focal_class.parameters: (Cell o1, Cell o2)
focal_class.return: int
focal_class.signature: int compare(Cell o1, Cell o2)
focal_method.body: public int compare(Cell o1, Cell o2) {
      return Long.valueOf(o1.getTimestamp()).compareTo(o2.getTimestamp());
    }
focal_method.class_method_signature: CellTimestampComparator.compare(Cell o1, Cell o2)
focal_method.full_signature: public int compare(Cell o1, Cell o2)
focal_method.identifier: compare
focal_method.invocations: compareTo valueOf getTimestamp getTimestamp
focal_method.modifiers: public
focal_method.parameters: (Cell o1, Cell o2)
focal_method.return: int
focal_method.signature: int compare(Cell o1, Cell o2)