package org.eclipse.tracecompass.statesystem.core.tests.backend;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
* The intervals to insert in the history backend
* @return The backend to be used for querying.
*/
- protected final IStateHistoryBackend prepareBackend(long startTime, long endTime,
+ protected final @Nullable IStateHistoryBackend prepareBackend(long startTime, long endTime,
List<ITmfStateInterval> intervals) {
try {
protected final IStateHistoryBackend buildAndQueryFullRange(long startTime, long endTime, int nbAttr, List<ITmfStateInterval> intervals, boolean allowNull) {
final IStateHistoryBackend backend = prepareBackend(startTime, endTime, intervals);
+ assertNotNull(backend);
try {
/*
assertEquals(endTime, backend.getEndTime());
} catch (StateSystemDisposedException e) {
fail(e.getMessage());
- return null;
}
return backend;
}