From b841085f5e153d2875f150e67637731b01a21425 Mon Sep 17 00:00:00 2001 From: madhawap Date: Thu, 25 Aug 2016 13:13:48 +0530 Subject: [PATCH] Fixes for integration tests --- .../device/enrollment/AndroidEnrollment.java | 2 +- .../src/test/resources/testng.xml | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/integration/tests-integration/src/test/java/org/wso2/mdm/integration/device/enrollment/AndroidEnrollment.java b/modules/integration/tests-integration/src/test/java/org/wso2/mdm/integration/device/enrollment/AndroidEnrollment.java index b7e947b88..b37159959 100644 --- a/modules/integration/tests-integration/src/test/java/org/wso2/mdm/integration/device/enrollment/AndroidEnrollment.java +++ b/modules/integration/tests-integration/src/test/java/org/wso2/mdm/integration/device/enrollment/AndroidEnrollment.java @@ -46,7 +46,7 @@ public void testEnrollment() throws Exception { enrollmentData.addProperty(Constants.DEVICE_IDENTIFIER_KEY, Constants.DEVICE_ID); MDMResponse response = client.post(Constants.AndroidEnrollment.ENROLLMENT_ENDPOINT, enrollmentData.toString()); - Assert.assertEquals(HttpStatus.SC_CREATED, response.getStatus()); + Assert.assertEquals(HttpStatus.SC_OK, response.getStatus()); Assert.assertTrue(response.getBody().contains(Constants.AndroidEnrollment.ENROLLMENT_RESPONSE_PAYLOAD_FOR_POST)); } diff --git a/modules/integration/tests-integration/src/test/resources/testng.xml b/modules/integration/tests-integration/src/test/resources/testng.xml index b7331d704..2977e4296 100644 --- a/modules/integration/tests-integration/src/test/resources/testng.xml +++ b/modules/integration/tests-integration/src/test/resources/testng.xml @@ -96,11 +96,11 @@ - - - - - + + + + + @@ -121,11 +121,11 @@ - - - - - + + + + +