From 931b4ee05b451977c02d16bf3f166fe8ab5f4951 Mon Sep 17 00:00:00 2001 From: Pasindu Date: Thu, 28 Sep 2017 18:11:09 +0530 Subject: [PATCH] Removed unwated lines --- .../org.wso2.carbon.device.mgt.core/pom.xml | 15 +-------------- .../service/GeoLocationProviderServiceTest.java | 10 ---------- .../src/test/resources/testng.xml | 2 +- pom.xml | 7 ------- 4 files changed, 2 insertions(+), 32 deletions(-) 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 fca68e4c5f..60dd1b2acc 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 233f6c06e1..fcd0800c63 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 5d6ce5fe1c..cdb5fdc20f 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 1757d6e0ee..c30878f9e1 100644 --- a/pom.xml +++ b/pom.xml @@ -1532,13 +1532,6 @@ ${power.mock.version} test - - org.powermock - powermock-module-junit4 - ${power.mock.version} - - test -