Search in sources :

Example 1 with PunctualInfo

use of org.eclipse.tracecompass.analysis.os.linux.core.tests.stubs.LinuxTestCase.PunctualInfo in project tracecompass by tracecompass.

the class InputOutputStateProviderTest method testStateProviderPunctualData.

/**
 * Test the data of attributes at punctual times
 */
@Test
public void testStateProviderPunctualData() {
    InputOutputAnalysisModule module = setUp(fTestCase.getTraceFileName());
    assertNotNull(module);
    TmfTestHelper.executeAnalysis(module);
    ITmfStateSystem ss = module.getStateSystem();
    assertNotNull(ss);
    for (@NonNull PunctualInfo info : fTestCase.getPunctualTestData()) {
        StateSystemTestUtils.testValuesAtTime(ss, info.getTimestamp(), info.getValues());
    }
}
Also used : NonNull(org.eclipse.jdt.annotation.NonNull) InputOutputAnalysisModule(org.eclipse.tracecompass.internal.analysis.os.linux.core.inputoutput.InputOutputAnalysisModule) ITmfStateSystem(org.eclipse.tracecompass.statesystem.core.ITmfStateSystem) PunctualInfo(org.eclipse.tracecompass.analysis.os.linux.core.tests.stubs.LinuxTestCase.PunctualInfo) Test(org.junit.Test)

Aggregations

NonNull (org.eclipse.jdt.annotation.NonNull)1 PunctualInfo (org.eclipse.tracecompass.analysis.os.linux.core.tests.stubs.LinuxTestCase.PunctualInfo)1 InputOutputAnalysisModule (org.eclipse.tracecompass.internal.analysis.os.linux.core.inputoutput.InputOutputAnalysisModule)1 ITmfStateSystem (org.eclipse.tracecompass.statesystem.core.ITmfStateSystem)1 Test (org.junit.Test)1