Remove powermock from library/impl 11/74111/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 17 Jul 2018 11:30:41 +0000 (13:30 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 17 Jul 2018 11:32:44 +0000 (13:32 +0200)
There is no need for powermock features in these tests, remove
the dependency.

Change-Id: Ic744f2d6e1fcda182e14c4c742b1042da97b1d2f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
library/impl/pom.xml
library/impl/src/test/java/org/opendaylight/ovsdb/lib/StalePassiveConnectionServiceTest.java

index d7cd87de3c695c6a7e00a80a5eba4888afeb5cf9..26626c65cd70510a91e227e4ba6f4615a9cbab96 100644 (file)
@@ -37,18 +37,8 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
       <groupId>com.fasterxml.jackson.core</groupId>
       <artifactId>jackson-core</artifactId>
     </dependency>
-      <dependency>
-          <groupId>org.powermock</groupId>
-          <artifactId>powermock-api-mockito</artifactId>
-          <scope>test</scope>
-      </dependency>
-      <dependency>
-          <groupId>org.powermock</groupId>
-          <artifactId>powermock-module-junit4</artifactId>
-          <scope>test</scope>
-      </dependency>
 
-      <dependency>
+    <dependency>
       <groupId>com.fasterxml.jackson.core</groupId>
       <artifactId>jackson-databind</artifactId>
     </dependency>
index a8c627f986908e5be62bcf0ba6e882558d56fbf8..e00700de4eaad72afd91795adb8f3fbe00541097 100644 (file)
@@ -29,15 +29,13 @@ import java.util.concurrent.TimeoutException;
 
 import org.junit.Test;
 import org.junit.runner.RunWith;
+import org.mockito.runners.MockitoJUnitRunner;
 import org.mockito.stubbing.Answer;
 import org.opendaylight.ovsdb.lib.impl.StalePassiveConnectionService;
-import org.powermock.core.classloader.annotations.PrepareForTest;
-import org.powermock.modules.junit4.PowerMockRunner;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-@RunWith(PowerMockRunner.class)
-@PrepareForTest({ StalePassiveConnectionService.class })
+@RunWith(MockitoJUnitRunner.class)
 public class StalePassiveConnectionServiceTest {
 
     private static final Logger LOG = LoggerFactory.getLogger(StalePassiveConnectionService.class);