From 649deca70c2abfc9a3ed3ed5d6ae93b175aa1af9 Mon Sep 17 00:00:00 2001 From: cagache Date: Tue, 31 Jan 2017 11:51:19 +0200 Subject: [PATCH] TAS - 2891 - getDeployments --- .../rest/workflow/deployments/GetDeploymentsFullTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e-test/java/org/alfresco/rest/workflow/deployments/GetDeploymentsFullTests.java b/e2e-test/java/org/alfresco/rest/workflow/deployments/GetDeploymentsFullTests.java index b97446893..a62735f91 100644 --- a/e2e-test/java/org/alfresco/rest/workflow/deployments/GetDeploymentsFullTests.java +++ b/e2e-test/java/org/alfresco/rest/workflow/deployments/GetDeploymentsFullTests.java @@ -78,8 +78,8 @@ public class GetDeploymentsFullTests extends RestTest { deployments = restClient.withWorkflowAPI().getDeployments(); restClient.assertStatusCodeIs(HttpStatus.OK); - RestDeploymentModel firstDeployment = deployments.getEntries().get(0); - RestDeploymentModel secondDeployment = deployments.getEntries().get(1); + RestDeploymentModel firstDeployment = deployments.getEntries().get(0).onModel(); + RestDeploymentModel secondDeployment = deployments.getEntries().get(1).onModel(); RestDeploymentModelsCollection deploymentsWithMaxItems = restClient.withParams("maxItems=2").withWorkflowAPI().getDeployments(); restClient.assertStatusCodeIs(HttpStatus.OK); deploymentsWithMaxItems @@ -108,7 +108,7 @@ public class GetDeploymentsFullTests extends RestTest @Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.FULL}) public void getNonNetworkDeploymentsWithNotNumericMaxItems() throws JsonToModelConversionException, Exception { - restClient.withParams("skipCount=A").withWorkflowAPI().getDeployments(); + restClient.withParams("maxItems=A").withWorkflowAPI().getDeployments(); restClient.assertStatusCodeIs(HttpStatus.BAD_REQUEST).assertLastError() .containsSummary(String.format(RestErrorModel.INVALID_MAXITEMS, "A")); }