diff options
author | 2018-08-22 08:44:41 +0800 | |
---|---|---|
committer | 2018-08-22 10:09:35 +0800 | |
commit | c3b07b59b78275e206011bc069ffd97cc65c5ec1 (patch) | |
tree | 67ed56fd0c749ff8a48dc188fd41217c115800ac /holmes-actions/src/test | |
parent | aa6978f0ab8e81ad3f5b8de549894b63131fde68 (diff) |
Add some comments to public methods
Change-Id: Id6270f32dc6abfa0b4973aadac7c46301d14d0c3
Issue-ID: HOLMES-160
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'holmes-actions/src/test')
-rw-r--r-- | holmes-actions/src/test/java/org/onap/holmes/common/aai/AaiQuery4CcvpnTest.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/holmes-actions/src/test/java/org/onap/holmes/common/aai/AaiQuery4CcvpnTest.java b/holmes-actions/src/test/java/org/onap/holmes/common/aai/AaiQuery4CcvpnTest.java index 51cba1c..c7c32eb 100644 --- a/holmes-actions/src/test/java/org/onap/holmes/common/aai/AaiQuery4CcvpnTest.java +++ b/holmes-actions/src/test/java/org/onap/holmes/common/aai/AaiQuery4CcvpnTest.java @@ -211,14 +211,15 @@ public class AaiQuery4CcvpnTest { } @Test - public void test_getServiceInstances_1() throws CorrelationException { + public void test_getServiceInstances_1() throws Exception { mockGetMethod(); EasyMock.expect(response.getEntity()).andReturn(data.getJSONObject("service-instances-by-service-type")); EasyMock.expect(response.getStatusInfo()).andReturn(Response.Status.OK); PowerMock.replayAll(); - JSONArray instances = aai.getServiceInstances("custom-1", "service-type-1"); + JSONArray instances = (JSONArray)Whitebox.invokeMethod(aai, "getServiceInstances", + "custom-1", "service-type-1"); PowerMock.verifyAll(); @@ -228,7 +229,7 @@ public class AaiQuery4CcvpnTest { } @Test - public void test_getServiceInstances_1_exception() throws CorrelationException { + public void test_getServiceInstances_1_exception() throws Exception { mockGetMethod(); EasyMock.expect(response.getEntity()).andReturn(data.getJSONObject("service-instances-by-service-type")); EasyMock.expect(response.getStatusInfo()).andReturn(Response.Status.NOT_FOUND).times(2); @@ -237,7 +238,8 @@ public class AaiQuery4CcvpnTest { PowerMock.replayAll(); - JSONArray instances = aai.getServiceInstances("custom-1", "service-type-1"); + JSONArray instances = (JSONArray)Whitebox.invokeMethod(aai, "getServiceInstances", + "custom-1", "service-type-1"); PowerMock.verifyAll(); |