diff --git a/components/extensions/remote-session-extension/org.wso2.carbon.device.mgt.extensions.remote.session/src/main/java/org/wso2/carbon/device/mgt/extensions/remote.session/authentication/oauth/OAuthTokenValidatorStubFactory.java b/components/extensions/remote-session-extension/org.wso2.carbon.device.mgt.extensions.remote.session/src/main/java/org/wso2/carbon/device/mgt/extensions/remote.session/authentication/oauth/OAuthTokenValidatorStubFactory.java index 15723a2c8..93a49160b 100644 --- a/components/extensions/remote-session-extension/org.wso2.carbon.device.mgt.extensions.remote.session/src/main/java/org/wso2/carbon/device/mgt/extensions/remote.session/authentication/oauth/OAuthTokenValidatorStubFactory.java +++ b/components/extensions/remote-session-extension/org.wso2.carbon.device.mgt.extensions.remote.session/src/main/java/org/wso2/carbon/device/mgt/extensions/remote.session/authentication/oauth/OAuthTokenValidatorStubFactory.java @@ -107,8 +107,8 @@ public class OAuthTokenValidatorStubFactory extends BasePoolableObjectFactory { auth.setPreemptiveAuthentication(true); String username = tokenValidationProperties.get(RemoteSessionConstants.USERNAME); String password = tokenValidationProperties.get(RemoteSessionConstants.PASSWORD); - auth.setPassword(username); - auth.setUsername(password); + auth.setUsername(username); + auth.setPassword(password); Options options = client.getOptions(); options.setProperty(HTTPConstants.AUTHENTICATE, auth); options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Constants.VALUE_TRUE); diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java index 0129f6f0f..1ca5cd950 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java @@ -412,6 +412,11 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv return null; } + @Override + public Operation getNextPendingOperation(DeviceIdentifier deviceIdentifier, long l) throws OperationManagementException { + return null; + } + @Override public void updateOperation(DeviceIdentifier deviceIdentifier, Operation operation) throws OperationManagementException { @@ -471,11 +476,21 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv return 0; } + @Override + public List getActivitiesUpdatedAfterByUser(long l, String s, int i, int i1) throws OperationManagementException { + return null; + } + @Override public int getActivityCountUpdatedAfter(long l) throws OperationManagementException { return 0; } + @Override + public int getActivityCountUpdatedAfterByUser(long l, String s) throws OperationManagementException { + return 0; + } + @Override public List getMonitoringOperationList(String s) { return null; diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.v09.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.v09.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java index 0129f6f0f..1ca5cd950 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.v09.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.v09.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java @@ -412,6 +412,11 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv return null; } + @Override + public Operation getNextPendingOperation(DeviceIdentifier deviceIdentifier, long l) throws OperationManagementException { + return null; + } + @Override public void updateOperation(DeviceIdentifier deviceIdentifier, Operation operation) throws OperationManagementException { @@ -471,11 +476,21 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv return 0; } + @Override + public List getActivitiesUpdatedAfterByUser(long l, String s, int i, int i1) throws OperationManagementException { + return null; + } + @Override public int getActivityCountUpdatedAfter(long l) throws OperationManagementException { return 0; } + @Override + public int getActivityCountUpdatedAfterByUser(long l, String s) throws OperationManagementException { + return 0; + } + @Override public List getMonitoringOperationList(String s) { return null; diff --git a/pom.xml b/pom.xml index ee2bc47e4..d7327bc61 100644 --- a/pom.xml +++ b/pom.xml @@ -1230,7 +1230,7 @@ 1.1.1 - 3.1.34 + 3.1.47 [3.1.0, 4.0.0)