aboutsummaryrefslogtreecommitdiffstats
path: root/ms/neng
diff options
context:
space:
mode:
Diffstat (limited to 'ms/neng')
-rw-r--r--ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/AaiServiceImplTest.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/AaiServiceImplTest.java b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/AaiServiceImplTest.java
index 8507bf65..f7d0bc28 100644
--- a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/AaiServiceImplTest.java
+++ b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/AaiServiceImplTest.java
@@ -48,14 +48,18 @@ public class AaiServiceImplTest {
AaiResponse aaiResponse = aaiServiceImpl.buildResponse(true);
Assert.assertEquals(aaiResponse.isRecFound(), true);
}
-
+
@Test(expected= Exception.class)
public void testValidate() throws Exception {
AaiProps aaiProps=new AaiProps();
aaiProps.setUriBase("http://");
aaiServiceImpl.setAaiProps(aaiProps);
aaiServiceImpl.setRestTemplate(new RestTemplate());
- aaiServiceImpl.validate("testUrl/","testName");
-
+ Assert.assertTrue(aaiServiceImpl.validate("testUrl/","testName"));
+ }
+ @Test(expected= Exception.class)
+ public void testGetRestTemplate_Null() throws Exception {
+ aaiServiceImpl.setRestTemplate(null);
+ Assert.assertNotNull(aaiServiceImpl.getRestTemplate());
}
}