Skip to content

Commit

Permalink
server.tests: Add error test cases when querying Time Graph tree/states
Browse files Browse the repository at this point in the history
Signed-off-by: Bernd Hufmann <[email protected]>
  • Loading branch information
bhufmann committed Dec 18, 2024
1 parent e731ee1 commit 4a79b72
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,24 @@ public void testTimeGraphDataProvider() throws InterruptedException {
testGetStates(SHALLOW_SEARCH);
}

/**
* Tests error cases when querying states for a time graph data provider
*/
@Test
public void testStatesErrors() {
ExperimentModelStub exp = assertPostExperiment(sfContextSwitchesUstNotInitializedStub.getName(), sfContextSwitchesUstNotInitializedStub);
executePostErrorTests(exp, RestServerTest::getArrowsEndpoint, CALL_STACK_DATAPROVIDER_ID, true);
}

/**
* Tests error cases when querying states for a time graph data provider
*/
@Test
public void testTreeErrors() {
ExperimentModelStub exp = assertPostExperiment(sfContextSwitchesUstNotInitializedStub.getName(), sfContextSwitchesUstNotInitializedStub);
executePostErrorTests(exp, RestServerTest::getTimeGraphTreeEndpoint, CALL_STACK_DATAPROVIDER_ID, false);
}

/**
* Tests querying styles for a time graph data provider
*/
Expand Down

0 comments on commit 4a79b72

Please sign in to comment.