import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfIterator;
import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfLocation;
+import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfLocationData;
import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfEvent;
import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace;
import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
@Before
public void setUp() throws TmfTraceException {
fixture = new CtfIterator(createTrace());
- CtfLocation ctfLocation = new CtfLocation(Long.valueOf(1));
- ctfLocation.setLocation(Long.valueOf(1));
+ CtfLocation ctfLocation = new CtfLocation(new CtfLocationData(1, 0));
fixture.setLocation(ctfLocation);
fixture.increaseRank();
}
CtfTmfTrace trace = createTrace();
long timestampValue = 1L;
long rank = 1L;
- CtfIterator result = new CtfIterator(trace, timestampValue, rank);
+ CtfIterator result = new CtfIterator(trace, new CtfLocationData(timestampValue, 0), rank);
assertNotNull(result);
}
@Test
public void testEquals_other() throws TmfTraceException {
CtfIterator obj = new CtfIterator(createTrace());
- CtfLocation ctfLocation1 = new CtfLocation(Long.valueOf(1));
- ctfLocation1.setLocation(Long.valueOf(1));
+ CtfLocation ctfLocation1 = new CtfLocation(new CtfLocationData(1, 0));
obj.setLocation(ctfLocation1);
obj.increaseRank();
*/
@Test
public void testSetLocation() {
- CtfLocation location = new CtfLocation(Long.valueOf(1));
- location.setLocation(Long.valueOf(1));
+ CtfLocation location = new CtfLocation(new CtfLocationData(1, 0));
fixture.setLocation(location);
}
}