/*******************************************************************************
- * Copyright (c) 2009, 2010, 2012, 2013 Ericsson
+ * Copyright (c) 2009, 2013 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Path;
import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
-import org.eclipse.linuxtools.tmf.core.event.TmfTimestamp;
import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
import org.eclipse.linuxtools.tmf.core.tests.TmfCoreTestPlugin;
+import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimestamp;
import org.eclipse.linuxtools.tmf.core.trace.ITmfCheckpoint;
import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
import org.eclipse.linuxtools.tmf.core.trace.TmfCheckpointIndexer;
/**
* Test suite for the TmfCheckpointIndexTest class.
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfCheckpointIndexTest {
// ------------------------------------------------------------------------
final URL location = FileLocator.find(TmfCoreTestPlugin.getDefault().getBundle(), new Path(path), null);
final File test = new File(FileLocator.toFileURL(location).toURI());
fTrace = new TestTrace(test.toURI().getPath(), BLOCK_SIZE);
- fTrace.indexTrace();
+ fTrace.indexTrace(true);
} catch (final TmfTraceException e) {
e.printStackTrace();
} catch (final URISyntaxException e) {
if (fEmptyTrace == null) {
fEmptyTrace = new EmptyTestTrace();
- fEmptyTrace.indexTrace();
+ fEmptyTrace.indexTrace(true);
}
}
// ------------------------------------------------------------------------
@Test
- @SuppressWarnings("null")
public void testTmfTraceIndexing() {
assertEquals("getCacheSize", BLOCK_SIZE, fTrace.getCacheSize());
assertEquals("getTraceSize", NB_EVENTS, fTrace.getNbEvents());
}
@Test
- @SuppressWarnings("null")
public void testEmptyTmfTraceIndexing() {
assertEquals("getCacheSize", ITmfTrace.DEFAULT_TRACE_CACHE_SIZE, fEmptyTrace.getCacheSize());
assertEquals("getTraceSize", 0, fEmptyTrace.getNbEvents());