From 76b26baaeb9c5da0328188a01a09fd799f8f9cc4 Mon Sep 17 00:00:00 2001 From: Bernd Hufmann Date: Wed, 18 Dec 2024 13:38:22 -0500 Subject: [PATCH] server.tests: Add error test cases when querying the XY endpoints Signed-off-by: Bernd Hufmann --- .../core/tests/services/XyDataProviderServiceTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/trace-server/org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core.tests/src/org/eclipse/tracecompass/incubator/trace/server/jersey/rest/core/tests/services/XyDataProviderServiceTest.java b/trace-server/org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core.tests/src/org/eclipse/tracecompass/incubator/trace/server/jersey/rest/core/tests/services/XyDataProviderServiceTest.java index 2fe3b32a..13a04eff 100644 --- a/trace-server/org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core.tests/src/org/eclipse/tracecompass/incubator/trace/server/jersey/rest/core/tests/services/XyDataProviderServiceTest.java +++ b/trace-server/org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core.tests/src/org/eclipse/tracecompass/incubator/trace/server/jersey/rest/core/tests/services/XyDataProviderServiceTest.java @@ -206,4 +206,14 @@ public void testHistogramDataProvider() throws InterruptedException { fail(e.getCause().getMessage()); } } + + /** + * Tests error cases when querying arrows for a time graph data provider + */ + @Test + public void testXYErrors() { + ExperimentModelStub exp = assertPostExperiment(sfArm64KernelNotIntitialzedStub.getName(), sfArm64KernelNotIntitialzedStub); + executePostErrorTests(exp, RestServerTest::getXYTreeEndpoint, XY_DATAPROVIDER_ID, false); + executePostErrorTests(exp, RestServerTest::getXYSeriesEndpoint, XY_DATAPROVIDER_ID, true); + } }