- public void testBuild() throws IOException, TmfTraceException {
- HistoryBuilder zebuilder;
- IStateChangeInput zeinput;
- IStateHistoryBackend zehp = null;
-
- zeinput = new CtfKernelStateInput(CtfTestFiles.getTestTrace());
- zehp = new HistoryTreeBackend(stateFileBenchmark, zeinput.getStartTime());
- zebuilder = new HistoryBuilder(zeinput, zehp);
- zebuilder.startBuilding(null);
-
- assertEquals(CtfTestFiles.startTime, zehp.getStartTime());
- assertEquals(CtfTestFiles.endTime, zehp.getEndTime());
+ public void testBuild() throws TmfTraceException {
+ IStateChangeInput input2;
+ ITmfStateSystem ssb2;
+
+ input2 = new CtfKernelStateInput(CtfTestFiles.getTestTrace());
+ ssb2 = StateSystemManager.loadStateHistory(stateFileBenchmark, input2, true);
+
+ assertEquals(CtfTestFiles.startTime, ssb2.getStartTime());
+ assertEquals(CtfTestFiles.endTime, ssb2.getCurrentEndTime());