diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml b/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml index fca68e4c5f8..60dd1b2accc 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml @@ -344,24 +344,11 @@ javassist - javassist - + javassist org.powermock powermock-api-mockito - - org.powermock - powermock-module-junit4 - test - - - - - - - - diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/geo/service/GeoLocationProviderServiceTest.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/geo/service/GeoLocationProviderServiceTest.java index 233f6c06e14..fcd0800c633 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/geo/service/GeoLocationProviderServiceTest.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/geo/service/GeoLocationProviderServiceTest.java @@ -31,7 +31,6 @@ import org.wso2.carbon.registry.core.jdbc.realm.InMemoryRealmService; import org.wso2.carbon.registry.core.service.RegistryService; import org.wso2.carbon.user.core.service.RealmService; import org.wso2.carbon.utils.multitenancy.MultitenantConstants; -import org.powermock.modules.junit4.PowerMockRunner; import java.io.InputStream; import java.rmi.RemoteException; @@ -39,7 +38,6 @@ import java.util.List; import static org.powermock.api.mockito.PowerMockito.*; -@RunWith(PowerMockRunner.class) @PrepareForTest(GeoLocationProviderServiceImpl.class) public class GeoLocationProviderServiceTest { @@ -129,14 +127,6 @@ public class GeoLocationProviderServiceTest { Assert.assertEquals(geoFenceNode.getQueryName(), SAMPLE_QUERY_NAME); } -// @Test(dependsOnMethods = "createGeoProximityAlert") -// public void getGeoProximityAlerts() throws Exception { -// String result; -// result = geoLocationProviderServiceImpl.getProximityAlerts(getDeviceIdentifier()); -// Assert.assertNotNull(result); -// Assert.assertEquals(result,"{proximityDistance:100\"\", proximityTime:50\"\"}"); -// } - @Test(dependsOnMethods = "createGeoSpeedAlert") public void getGeoSpeedAlerts() throws Exception { String result; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/resources/testng.xml b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/resources/testng.xml index 5d6ce5fe1cc..cdb5fdc20f9 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/resources/testng.xml +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/resources/testng.xml @@ -32,7 +32,7 @@ - + diff --git a/pom.xml b/pom.xml index 1757d6e0eee..c30878f9e14 100644 --- a/pom.xml +++ b/pom.xml @@ -1532,13 +1532,6 @@ ${power.mock.version} test - - org.powermock - powermock-module-junit4 - ${power.mock.version} - - test -