summaryrefslogtreecommitdiffstats
path: root/service/src/test/java/org/onap/vfc/nfvo/multivimproxy/common/util/RestfulUtilTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'service/src/test/java/org/onap/vfc/nfvo/multivimproxy/common/util/RestfulUtilTest.java')
-rw-r--r--service/src/test/java/org/onap/vfc/nfvo/multivimproxy/common/util/RestfulUtilTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/service/src/test/java/org/onap/vfc/nfvo/multivimproxy/common/util/RestfulUtilTest.java b/service/src/test/java/org/onap/vfc/nfvo/multivimproxy/common/util/RestfulUtilTest.java
index 2f9c00d..15b908b 100644
--- a/service/src/test/java/org/onap/vfc/nfvo/multivimproxy/common/util/RestfulUtilTest.java
+++ b/service/src/test/java/org/onap/vfc/nfvo/multivimproxy/common/util/RestfulUtilTest.java
@@ -19,6 +19,8 @@ package org.onap.vfc.nfvo.multivimproxy.common.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
+import java.net.Inet4Address;
+
import org.junit.Test;
import org.onap.vfc.nfvo.multivimproxy.common.util.restclient.RestfulOptions;
import org.onap.vfc.nfvo.multivimproxy.common.util.restclient.RestfulParametes;
@@ -52,6 +54,12 @@ public class RestfulUtilTest {
};
}
+
+ @Test
+ public void findLocalAddress() {
+ assertEquals("127.0.0.1", Inet4Address.getLoopbackAddress().getHostAddress());
+ }
+
private void mockGetResponseContentReturnNull() {
new MockUp<RestfulUtil>() {