Esempio n. 1
0
 /** Perform pre-test initialization. */
 @Before
 public void setUp() {
   trace = CtfTmfTestTraceUtils.getTrace(testTrace);
   iterator = (CtfIterator) trace.createIterator();
   CtfLocation ctfLocation = new CtfLocation(new CtfLocationInfo(1, 0));
   iterator.setLocation(ctfLocation);
   iterator.increaseRank();
 }
Esempio n. 2
0
  /**
   * Run the boolean equals(Object) method test. Compare with another iterator on the same trace.
   */
  @Test
  public void testEquals_other() {
    try (CtfIterator obj = (CtfIterator) trace.createIterator(); ) {
      assertNotNull(obj);
      CtfLocation ctfLocation1 = new CtfLocation(new CtfLocationInfo(1, 0));
      obj.setLocation(ctfLocation1);
      obj.increaseRank();

      boolean result = iterator.equals(obj);
      assertTrue(result);
    }
  }
Esempio n. 3
0
 /** Run the void increaseRank() method test. */
 @Test
 public void testIncreaseRank() {
   iterator.increaseRank();
 }