[Builder] Build failed in Jenkins: product-mdm__java8 » WSO2 MDM Backend Integration Tests #76

cbuilder at wso2.org cbuilder at wso2.org
Mon Dec 21 17:25:24 PST 2015


See <https://wso2.org/jenkins/job/product-mdm__java8/org.wso2.mdm$tests-integration/76/>

------------------------------------------
[...truncated 1874 lines...]
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.h2.message.DbException.get(DbException.java:133)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1348)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1323)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.h2.jdbc.JdbcConnection.setAutoCommit(JdbcConnection.java:364)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at java.lang.reflect.Method.invoke(Method.java:497)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:71)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at com.sun.proxy.$Proxy13.setAutoCommit(Unknown Source)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO.addLogRecords(JDBCLogsDAO.java:144)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO.saveLogBatch(JDBCLogsDAO.java:131)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.wso2.carbon.registry.core.utils.LogWriter.logWrite(LogWriter.java:106)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.wso2.carbon.registry.core.utils.LogWriter.run(LogWriter.java:91)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - [2015-12-22 01:23:14,003] ERROR {org.wso2.carbon.registry.core.utils.LogWriter} -  Unable to save log records
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to update log batch records . Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-140]
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO.addLogRecords(JDBCLogsDAO.java:177)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO.saveLogBatch(JDBCLogsDAO.java:131)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.wso2.carbon.registry.core.utils.LogWriter.logWrite(LogWriter.java:106)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.wso2.carbon.registry.core.utils.LogWriter.run(LogWriter.java:91)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - Caused by: org.h2.jdbc.JdbcSQLException: Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-140]
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.h2.message.DbException.get(DbException.java:167)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.h2.message.DbException.get(DbException.java:144)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.h2.message.DbException.get(DbException.java:133)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1348)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1323)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.h2.jdbc.JdbcConnection.setAutoCommit(JdbcConnection.java:364)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at java.lang.reflect.Method.invoke(Method.java:497)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:71)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at com.sun.proxy.$Proxy13.setAutoCommit(Unknown Source)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	at org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO.addLogRecords(JDBCLogsDAO.java:144)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - 	... 3 more
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - [2015-12-22 01:23:14,475]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Shutdown complete
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - [2015-12-22 01:23:14,475]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Halting JVM
INFO  [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Server stopped successfully...
Tests run: 138, Failures: 24, Errors: 0, Skipped: 17, Time elapsed: 61.408 sec <<< FAILURE!
testCountDevicesWithNoDevices(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagementWithNoDevices)  Time elapsed: 0.202 sec  <<< FAILURE!
junit.framework.ComparisonFailure: null expected:<[0]> but was:<[]>
	at junit.framework.Assert.assertEquals(Assert.java:81)
	at junit.framework.Assert.assertEquals(Assert.java:87)
	at org.wso2.mdm.integration.mobileDevice.MobileDeviceManagementWithNoDevices.testCountDevicesWithNoDevices(MobileDeviceManagementWithNoDevices.java:45)

testViewDevicesWithNoDevices(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagementWithNoDevices)  Time elapsed: 0.041 sec  <<< FAILURE!
junit.framework.ComparisonFailure: null expected:<[]> but was:<[[]]>
	at junit.framework.Assert.assertEquals(Assert.java:81)
	at junit.framework.Assert.assertEquals(Assert.java:87)
	at org.wso2.mdm.integration.mobileDevice.MobileDeviceManagementWithNoDevices.testViewDevicesWithNoDevices(MobileDeviceManagementWithNoDevices.java:52)

testIsEnrolled(org.wso2.mdm.integration.device.enrollment.AndroidEnrollment)  Time elapsed: 0.038 sec  <<< FAILURE!
java.lang.IllegalStateException: Not a JSON Object: null
	at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:90)
	at org.wso2.mdm.integration.common.AssertUtil.jsonPayloadCompare(AssertUtil.java:40)
	at org.wso2.mdm.integration.device.enrollment.AndroidEnrollment.testIsEnrolled(AndroidEnrollment.java:69)

testGetListOfDevicesOperations(org.wso2.mdm.integration.device.operation.AndroidOperation)  Time elapsed: 0.028 sec  <<< FAILURE!
java.lang.IllegalStateException: Not a JSON Object: null
	at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:90)
	at org.wso2.mdm.integration.device.operation.AndroidOperation.testGetListOfDevicesOperations(AndroidOperation.java:833)

testGetLicense(org.wso2.mdm.integration.device.mgt.AndroidDeviceManagement)  Time elapsed: 0.012 sec  <<< FAILURE!
junit.framework.AssertionFailedError: null
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at junit.framework.Assert.assertTrue(Assert.java:27)
	at org.wso2.mdm.integration.device.mgt.AndroidDeviceManagement.testGetLicense(AndroidDeviceManagement.java:98)

testGetDevice(org.wso2.mdm.integration.device.mgt.AndroidDeviceManagement)  Time elapsed: 0.017 sec  <<< FAILURE!
java.lang.IllegalStateException: Not a JSON Object: null
	at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:90)
	at org.wso2.mdm.integration.device.mgt.AndroidDeviceManagement.testGetDevice(AndroidDeviceManagement.java:58)

testGetAllDevices(org.wso2.mdm.integration.device.mgt.AndroidDeviceManagement)  Time elapsed: 0.017 sec  <<< FAILURE!
java.lang.IllegalStateException: This is not a JSON Array.
	at com.google.gson.JsonElement.getAsJsonArray(JsonElement.java:106)
	at org.wso2.mdm.integration.device.mgt.AndroidDeviceManagement.testGetAllDevices(AndroidDeviceManagement.java:50)

testGetDeviceAppsWithWrongDeviceID(org.wso2.mdm.integration.operation.OperationManagement)  Time elapsed: 0.051 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<500> but was:<200>
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.failNotEquals(Assert.java:283)
	at junit.framework.Assert.assertEquals(Assert.java:64)
	at junit.framework.Assert.assertEquals(Assert.java:195)
	at junit.framework.Assert.assertEquals(Assert.java:201)
	at org.wso2.mdm.integration.operation.OperationManagement.testGetDeviceAppsWithWrongDeviceID(OperationManagement.java:80)

testGetDeviceOperationsWithWrongDeviceID(org.wso2.mdm.integration.operation.OperationManagement)  Time elapsed: 0.037 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<500> but was:<200>
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.failNotEquals(Assert.java:283)
	at junit.framework.Assert.assertEquals(Assert.java:64)
	at junit.framework.Assert.assertEquals(Assert.java:195)
	at junit.framework.Assert.assertEquals(Assert.java:201)
	at org.wso2.mdm.integration.operation.OperationManagement.testGetDeviceOperationsWithWrongDeviceID(OperationManagement.java:88)

testCountDevices(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement)  Time elapsed: 0.027 sec  <<< FAILURE!
junit.framework.AssertionFailedError: null
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at junit.framework.Assert.assertTrue(Assert.java:27)
	at org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement.testCountDevices(MobileDeviceManagement.java:82)

testGetAndroidDevices(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement)  Time elapsed: 0.028 sec  <<< FAILURE!
java.lang.IllegalStateException: This is not a JSON Array.
	at com.google.gson.JsonElement.getAsJsonArray(JsonElement.java:106)
	at org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement.testGetAndroidDevices(MobileDeviceManagement.java:117)

testGetDeviceWithMinusLength(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement)  Time elapsed: 0.028 sec  <<< FAILURE!
java.lang.IllegalStateException: This is not a JSON Array.
	at com.google.gson.JsonElement.getAsJsonArray(JsonElement.java:106)
	at org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement.testGetDeviceWithMinusLength(MobileDeviceManagement.java:148)

testGetDevicesBelongToAdmin(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement)  Time elapsed: 0.024 sec  <<< FAILURE!
java.lang.IllegalStateException: This is not a JSON Array.
	at com.google.gson.JsonElement.getAsJsonArray(JsonElement.java:106)
	at org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement.testGetDevicesBelongToAdmin(MobileDeviceManagement.java:133)

testGetDevicesForSetOfDevices(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement)  Time elapsed: 0.027 sec  <<< FAILURE!
java.lang.IllegalStateException: Not a JSON Object: null
	at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:90)
	at org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement.testGetDevicesForSetOfDevices(MobileDeviceManagement.java:105)

testGetDevicesWithInvalidStartNumber(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement)  Time elapsed: 0.035 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<404> but was:<200>
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.failNotEquals(Assert.java:283)
	at junit.framework.Assert.assertEquals(Assert.java:64)
	at junit.framework.Assert.assertEquals(Assert.java:195)
	at junit.framework.Assert.assertEquals(Assert.java:201)
	at org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement.testGetDevicesWithInvalidStartNumber(MobileDeviceManagement.java:141)

testGetWindowsDevices(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement)  Time elapsed: 0.035 sec  <<< FAILURE!
junit.framework.ComparisonFailure: null expected:<[]> but was:<[[]]>
	at junit.framework.Assert.assertEquals(Assert.java:81)
	at junit.framework.Assert.assertEquals(Assert.java:87)
	at org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement.testGetWindowsDevices(MobileDeviceManagement.java:126)

testViewDeviceTypes(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement)  Time elapsed: 0.019 sec  <<< FAILURE!
junit.framework.ComparisonFailure: null expected:<[[{"id":1,"name":"android"},{"id":2,"name":"windows"}]]> but was:<[]>
	at junit.framework.Assert.assertEquals(Assert.java:81)
	at junit.framework.Assert.assertEquals(Assert.java:87)
	at org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement.testViewDeviceTypes(MobileDeviceManagement.java:95)

testViewUserWithoutUsers(org.wso2.mdm.integration.user.UserManagement)  Time elapsed: 0.016 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<404> but was:<200>
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.failNotEquals(Assert.java:283)
	at junit.framework.Assert.assertEquals(Assert.java:64)
	at junit.framework.Assert.assertEquals(Assert.java:195)
	at junit.framework.Assert.assertEquals(Assert.java:201)
	at org.wso2.mdm.integration.user.UserManagement.testViewUserWithoutUsers(UserManagement.java:49)

testViewRoles(org.wso2.mdm.integration.role.RoleManagement)  Time elapsed: 0.02 sec  <<< FAILURE!
java.lang.IllegalStateException: Not a JSON Object: null
	at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:90)
	at org.wso2.mdm.integration.common.AssertUtil.jsonPayloadCompare(AssertUtil.java:40)
	at org.wso2.mdm.integration.role.RoleManagement.testViewRoles(RoleManagement.java:54)

testRemoveRoleWithoutRoles(org.wso2.mdm.integration.role.RoleManagement)  Time elapsed: 0.019 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<500> but was:<200>
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.failNotEquals(Assert.java:283)
	at junit.framework.Assert.assertEquals(Assert.java:64)
	at junit.framework.Assert.assertEquals(Assert.java:195)
	at junit.framework.Assert.assertEquals(Assert.java:201)
	at org.wso2.mdm.integration.role.RoleManagement.testRemoveRoleWithoutRoles(RoleManagement.java:114)

testGetAllPolicies(org.wso2.mdm.integration.policy.WindowsPolicyManagement)  Time elapsed: 0.016 sec  <<< FAILURE!
java.lang.IllegalStateException: Not a JSON Object: null
	at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:90)
	at org.wso2.mdm.integration.policy.WindowsPolicyManagement.setPolicyIDs(WindowsPolicyManagement.java:117)
	at org.wso2.mdm.integration.policy.WindowsPolicyManagement.testGetAllPolicies(WindowsPolicyManagement.java:72)

testViewFeaturesWithErroneousEndPoint(org.wso2.mdm.integration.feature.FeatureManagement)  Time elapsed: 0.015 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<404> but was:<200>
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.failNotEquals(Assert.java:283)
	at junit.framework.Assert.assertEquals(Assert.java:64)
	at junit.framework.Assert.assertEquals(Assert.java:195)
	at junit.framework.Assert.assertEquals(Assert.java:201)
	at org.wso2.mdm.integration.feature.FeatureManagement.testViewFeaturesWithErroneousEndPoint(FeatureManagement.java:51)

testGetConfiguration(org.wso2.mdm.integration.configuration.ConfigurationManagement)  Time elapsed: 0.016 sec  <<< FAILURE!
java.lang.IllegalStateException: Not a JSON Object: null
	at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:90)
	at org.wso2.mdm.integration.common.AssertUtil.jsonPayloadCompare(AssertUtil.java:40)
	at org.wso2.mdm.integration.configuration.ConfigurationManagement.testGetConfiguration(ConfigurationManagement.java:56)

testGetConfigurationWithErroneousEndPoint(org.wso2.mdm.integration.configuration.ConfigurationManagement)  Time elapsed: 0.021 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<401> but was:<200>
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.failNotEquals(Assert.java:283)
	at junit.framework.Assert.assertEquals(Assert.java:64)
	at junit.framework.Assert.assertEquals(Assert.java:195)
	at junit.framework.Assert.assertEquals(Assert.java:201)
	at org.wso2.mdm.integration.configuration.ConfigurationManagement.testGetConfigurationWithErroneousEndPoint(ConfigurationManagement.java:65)


Results :

Failed tests:   testCountDevicesWithNoDevices(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagementWithNoDevices): null expected:<[0]> but was:<[]>
  testViewDevicesWithNoDevices(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagementWithNoDevices): null expected:<[]> but was:<[[]]>
  testIsEnrolled(org.wso2.mdm.integration.device.enrollment.AndroidEnrollment): Not a JSON Object: null
  testGetListOfDevicesOperations(org.wso2.mdm.integration.device.operation.AndroidOperation): Not a JSON Object: null
  testGetLicense(org.wso2.mdm.integration.device.mgt.AndroidDeviceManagement)
  testGetDevice(org.wso2.mdm.integration.device.mgt.AndroidDeviceManagement): Not a JSON Object: null
  testGetAllDevices(org.wso2.mdm.integration.device.mgt.AndroidDeviceManagement): This is not a JSON Array.
  testGetDeviceAppsWithWrongDeviceID(org.wso2.mdm.integration.operation.OperationManagement): expected:<500> but was:<200>
  testGetDeviceOperationsWithWrongDeviceID(org.wso2.mdm.integration.operation.OperationManagement): expected:<500> but was:<200>
  testCountDevices(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement)
  testGetAndroidDevices(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement): This is not a JSON Array.
  testGetDeviceWithMinusLength(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement): This is not a JSON Array.
  testGetDevicesBelongToAdmin(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement): This is not a JSON Array.
  testGetDevicesForSetOfDevices(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement): Not a JSON Object: null
  testGetDevicesWithInvalidStartNumber(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement): expected:<404> but was:<200>
  testGetWindowsDevices(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement): null expected:<[]> but was:<[[]]>
  testViewDeviceTypes(org.wso2.mdm.integration.mobileDevice.MobileDeviceManagement): null expected:<[[{"id":1,"name":"android"},{"id":2,"name":"windows"}]]> but was:<[]>
  testViewUserWithoutUsers(org.wso2.mdm.integration.user.UserManagement): expected:<404> but was:<200>
  testViewRoles(org.wso2.mdm.integration.role.RoleManagement): Not a JSON Object: null
  testRemoveRoleWithoutRoles(org.wso2.mdm.integration.role.RoleManagement): expected:<500> but was:<200>
  testGetAllPolicies(org.wso2.mdm.integration.policy.WindowsPolicyManagement): Not a JSON Object: null
  testViewFeaturesWithErroneousEndPoint(org.wso2.mdm.integration.feature.FeatureManagement): expected:<404> but was:<200>
  testGetConfiguration(org.wso2.mdm.integration.configuration.ConfigurationManagement): Not a JSON Object: null
  testGetConfigurationWithErroneousEndPoint(org.wso2.mdm.integration.configuration.ConfigurationManagement): expected:<401> but was:<200>

Tests run: 138, Failures: 24, Errors: 0, Skipped: 17

[JENKINS] Recording test results


More information about the Builder mailing list