TmfTraceStub trace = new TmfTraceStub(testfile.toURI().getPath(), ITmfTrace.DEFAULT_TRACE_CACHE_SIZE, false, null);
trace.indexTrace(true);
- assertEquals("getType", ITmfEvent.class, trace.getType());
+ assertEquals("getEventType", ITmfEvent.class, trace.getEventType());
assertNull("getResource", trace.getResource());
assertEquals("getPath", testfile.toURI().getPath(), trace.getPath());
assertEquals("getCacheSize", ITmfTrace.DEFAULT_TRACE_CACHE_SIZE, trace.getCacheSize());
TmfTraceStub trace = new TmfTraceStub(testfile.toURI().getPath(), ITmfTrace.DEFAULT_TRACE_CACHE_SIZE, interval);
trace.indexTrace(true);
- assertEquals("getType", ITmfEvent.class, trace.getType());
+ assertEquals("getEventType", ITmfEvent.class, trace.getEventType());
assertNull("getResource", trace.getResource());
assertEquals("getPath", testfile.toURI().getPath(), trace.getPath());
assertEquals("getCacheSize", ITmfTrace.DEFAULT_TRACE_CACHE_SIZE, trace.getCacheSize());
TmfTraceStub trace = new TmfTraceStub(original);
trace.indexTrace(true);
- assertEquals("getType", ITmfEvent.class, trace.getType());
+ assertEquals("getEventType", ITmfEvent.class, trace.getEventType());
assertNull("getResource", trace.getResource());
assertEquals("getPath", testfile.toURI().getPath(), trace.getPath());
assertEquals("getCacheSize", ITmfTrace.DEFAULT_TRACE_CACHE_SIZE, trace.getCacheSize());
fail("TmfTrace.initialize() - Exception thrown");
}
- assertEquals("getType", ITmfEvent.class, trace.getType());
+ assertEquals("getEventType", ITmfEvent.class, trace.getEventType());
assertNull ("getResource", trace.getResource());
assertEquals("getPath", path, trace.getPath());
assertEquals("getCacheSize", ITmfTrace.DEFAULT_TRACE_CACHE_SIZE, trace.getCacheSize());
fail("TmfTrace.initialize() - Exception thrown");
}
- assertEquals("getType", ITmfEvent.class, trace.getType());
+ assertEquals("getEventType", ITmfEvent.class, trace.getEventType());
assertNull ("getResource", trace.getResource());
assertEquals("getPath", path, trace.getPath());
assertEquals("getCacheSize", ITmfTrace.DEFAULT_TRACE_CACHE_SIZE, trace.getCacheSize());
// Instantiate an "empty" trace
final TmfTraceStub trace = new TmfTraceStub();
- assertNull ("getType", trace.getType());
+ assertNull ("getEventType", trace.getEventType());
assertNull ("getResource", trace.getResource());
assertEquals("getCacheSize", ITmfTrace.DEFAULT_TRACE_CACHE_SIZE, trace.getCacheSize());
assertEquals("getStreamingInterval", 0, trace.getStreamingInterval());
fail("indexing");
}
- assertEquals("getType", ITmfEvent.class, trace.getType());
+ assertEquals("getEventType", ITmfEvent.class, trace.getEventType());
assertNull ("getResource", trace.getResource());
assertEquals("getCacheSize", ITmfTrace.DEFAULT_TRACE_CACHE_SIZE, trace.getCacheSize());
assertEquals("getStreamingInterval", 0, trace.getStreamingInterval());
@Test
public void testDefaultTmfTraceStub() {
assertFalse ("Open trace", fTrace == null);
- assertEquals("getType", ITmfEvent.class, fTrace.getType());
+ assertEquals("getEventType", ITmfEvent.class, fTrace.getEventType());
assertNull ("getResource", fTrace.getResource());
assertEquals("getStreamingInterval", 0, fTrace.getStreamingInterval());
assertEquals("getName", TEST_TRACE.getPath(), fTrace.getName());
@Test
public void testEmptyConstructor() {
SyslogTrace trace = new SyslogTrace();
- assertEquals("getType", null, trace.getType());
+ assertEquals("getEventType", null, trace.getEventType());
assertEquals("getPath", null, trace.getPath());
assertEquals("getName", "", trace.getName());
assertEquals("getCacheSize", 100, trace.getCacheSize());
SyslogTrace trace = new SyslogTrace();
IResource resource = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(PATH));
trace.initTrace(resource, path, SyslogEvent.class);
- assertEquals("getType", SyslogEvent.class, trace.getType());
+ assertEquals("getEventType", SyslogEvent.class, trace.getEventType());
assertEquals("getPath", fTestFile.toURI().getPath(), trace.getPath());
assertEquals("getName", NAME, trace.getName());
assertEquals("getCacheSize", 100, trace.getCacheSize());