X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=huawei%2Fvnfmadapter%2FVnfmadapterService%2Fservice%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fvfc%2Fnfvo%2Fvnfm%2Fsvnfm%2Fvnfmadapter%2Fcommon%2Frestclient%2FTestHttpRest.java;h=fb2203926977b9bd4d0accdb303979be15202303;hb=ec7b4ae6da9a4a3201da28c8189b44ef3aea71d5;hp=84de1a2576daf40a22c61aa12babc3a28b2b1b01;hpb=69f3a1d8ec1e10d59f3f52062729b2bf45887fe4;p=vfc%2Fnfvo%2Fdriver%2Fvnfm%2Fsvnfm.git diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/restclient/TestHttpRest.java b/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/restclient/TestHttpRest.java index 84de1a25..fb220392 100644 --- a/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/restclient/TestHttpRest.java +++ b/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/restclient/TestHttpRest.java @@ -79,12 +79,12 @@ public class TestHttpRest { httpClient.start(); Request request = httpClient.newRequest("http://reqres.in/api/users/2"); ContentResponse contentResponse = request.send(); - new MockUp() { - @Mock - public ContentResponse getResponse() { - return contentResponse; - } - }; +// new MockUp() { +// @Mock +// public ContentResponse getResponse() { +// return contentResponse; +// } +// }; } /** @@ -127,12 +127,12 @@ public class TestHttpRest { @Test public void testInitHttpRest() throws Exception { final RestfulOptions options = new RestfulOptions(); - new MockUp() { - - @Mock - public void doStart() { - } - }; +// new MockUp() { +// +// @Mock +// public void doStart() { +// } +// }; final HttpRest httpRest = new HttpRest(); httpRest.initHttpRest(options); final Field httpClient = HttpBaseRest.class.getDeclaredField("client");