diff --git a/src/test/java/ch/ethz/seb/sebserver/gui/integration/UseCasesIntegrationTest.java b/src/test/java/ch/ethz/seb/sebserver/gui/integration/UseCasesIntegrationTest.java index e77559a6..9188427f 100644 --- a/src/test/java/ch/ethz/seb/sebserver/gui/integration/UseCasesIntegrationTest.java +++ b/src/test/java/ch/ethz/seb/sebserver/gui/integration/UseCasesIntegrationTest.java @@ -95,6 +95,7 @@ import ch.ethz.seb.sebserver.gbl.model.sebconfig.SEBClientConfig; import ch.ethz.seb.sebserver.gbl.model.sebconfig.TemplateAttribute; import ch.ethz.seb.sebserver.gbl.model.sebconfig.View; import ch.ethz.seb.sebserver.gbl.model.session.ClientConnection; +import ch.ethz.seb.sebserver.gbl.model.session.ClientConnection.ConnectionStatus; import ch.ethz.seb.sebserver.gbl.model.session.ClientConnectionData; import ch.ethz.seb.sebserver.gbl.model.session.ClientInstruction; import ch.ethz.seb.sebserver.gbl.model.session.ClientInstruction.InstructionType; @@ -2148,7 +2149,7 @@ public class UseCasesIntegrationTest extends GuiIntegrationTest { assertTrue(connections.isEmpty()); // get MonitoringFullPageData - final Result fullPageData = restService.getBuilder(GetMonitoringFullPageData.class) + Result fullPageData = restService.getBuilder(GetMonitoringFullPageData.class) .withURIVariable(API.PARAM_PARENT_MODEL_ID, exam.getModelId()) .call(); assertNotNull(fullPageData); @@ -2200,6 +2201,22 @@ public class UseCasesIntegrationTest extends GuiIntegrationTest { iterator.next(); final ClientConnectionData con = iterator.next(); + fullPageData = restService.getBuilder(GetMonitoringFullPageData.class) + .withURIVariable(API.PARAM_PARENT_MODEL_ID, exam.getModelId()) + .withHeader(API.EXAM_MONITORING_STATE_FILTER, ConnectionStatus.DISABLED.name()) + .call(); + assertNotNull(fullPageData); + assertFalse(fullPageData.hasError()); + + fullPageData = restService.getBuilder(GetMonitoringFullPageData.class) + .withURIVariable(API.PARAM_PARENT_MODEL_ID, exam.getModelId()) + .withHeader( + API.EXAM_MONITORING_STATE_FILTER, + ConnectionStatus.DISABLED.name() + "," + ConnectionStatus.ACTIVE.name()) + .call(); + assertNotNull(fullPageData); + assertFalse(fullPageData.hasError()); + // get single client connection final Result ccCall = restService.getBuilder(GetClientConnection.class) .withURIVariable(API.PARAM_MODEL_ID, con.clientConnection.getModelId())