aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2018-09-26 09:58:59 -0400
committerJim Hahn <jrh3@att.com>2018-09-26 10:19:26 -0400
commitd716c36868f9d3ea283e8e4bc54eac8da0a92bf4 (patch)
treec0fb9e9236d4d3d4719842e6522733f9051c973b /utils
parentaf5e28cc353456a28204ce8ebe792a218607d8c9 (diff)
Use powermock version from parent pom
Change-Id: I84fd562e7050508a75b4192ba162a09acd938986 Issue-ID: POLICY-1148 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/pom.xml25
-rw-r--r--utils/src/test/java/org/onap/policy/common/utils/network/NetworkUtilTest.java2
2 files changed, 1 insertions, 26 deletions
diff --git a/utils/pom.xml b/utils/pom.xml
index 4b0f03ba..82f07b38 100644
--- a/utils/pom.xml
+++ b/utils/pom.xml
@@ -32,11 +32,6 @@
<description>Common Utilities</description>
<packaging>jar</packaging>
- <properties>
- <powermock.version>1.6.6</powermock.version>
- <slf4j.version>1.7.25</slf4j.version>
- </properties>
-
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
@@ -60,32 +55,12 @@
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito</artifactId>
- <version>${powermock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
- <version>${powermock.version}</version>
<scope>test</scope>
- <exclusions>
- <exclusion>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.powermock</groupId>
- <artifactId>powermock-core</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.powermock</groupId>
- <artifactId>powermock-reflect</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.javassist</groupId>
- <artifactId>javassist</artifactId>
- </exclusion>
- </exclusions>
</dependency>
<dependency>
<groupId>com.openpojo</groupId>
diff --git a/utils/src/test/java/org/onap/policy/common/utils/network/NetworkUtilTest.java b/utils/src/test/java/org/onap/policy/common/utils/network/NetworkUtilTest.java
index 1e402d2a..6dd09d6e 100644
--- a/utils/src/test/java/org/onap/policy/common/utils/network/NetworkUtilTest.java
+++ b/utils/src/test/java/org/onap/policy/common/utils/network/NetworkUtilTest.java
@@ -32,7 +32,7 @@ public class NetworkUtilTest {
@Test
public void test() throws InterruptedException, IOException {
assertNotNull(NetworkUtil.IPv4_WILDCARD_ADDRESS);
- assertFalse(NetworkUtil.isTcpPortOpen("localhost", 8080, 1, 5));
+ assertFalse(NetworkUtil.isTcpPortOpen("localhost", 8180, 1, 5));
assertNotNull(NetworkUtil.getHostname());
assertNotNull(NetworkUtil.getHostIp());
}