diff options
Diffstat (limited to 'huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/restclient')
2 files changed, 20 insertions, 20 deletions
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<HttpBaseRest>() { - @Mock - public ContentResponse getResponse() { - return contentResponse; - } - }; +// new MockUp<HttpBaseRest>() { +// @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<HttpClient>() { - - @Mock - public void doStart() { - } - }; +// new MockUp<HttpClient>() { +// +// @Mock +// public void doStart() { +// } +// }; final HttpRest httpRest = new HttpRest(); httpRest.initHttpRest(options); final Field httpClient = HttpBaseRest.class.getDeclaredField("client"); diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/restclient/TestRestfulFactory.java b/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/restclient/TestRestfulFactory.java index eccbb8d7..820d3391 100644 --- a/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/restclient/TestRestfulFactory.java +++ b/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/restclient/TestRestfulFactory.java @@ -89,14 +89,14 @@ public class TestRestfulFactory { public void testGetRestInstance() { Restful instance = RestfulFactory.getRestInstance("https"); - new MockUp<HttpRest>() { - - @Mock - public void initHttpRest(final RestfulOptions option) throws ServiceException { - throw new ServiceException(); - } - - }; +// new MockUp<HttpRest>() { +// +// @Mock +// public void initHttpRest(final RestfulOptions option) throws ServiceException { +// throw new ServiceException(); +// } +// +// }; instance = RestfulFactory.getRestInstance("http"); assertNotNull(instance); |