From a73c9f7ff27e074cf64aa798705c898911cf7439 Mon Sep 17 00:00:00 2001 From: sg481n Date: Mon, 2 Oct 2017 20:31:06 +0000 Subject: Improve code coverage for aaf cadi modules Issue-ID: AAF-79 Change-Id: Id98e2fd4a7756916ed6346bf9bead481e7f42180 Signed-off-by: sg481n --- .../onap/aaf/cadi/dme2/JU_DME2ClientSSTest.java | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) (limited to 'client/src/test/java/org/onap/aaf/cadi/dme2/JU_DME2ClientSSTest.java') diff --git a/client/src/test/java/org/onap/aaf/cadi/dme2/JU_DME2ClientSSTest.java b/client/src/test/java/org/onap/aaf/cadi/dme2/JU_DME2ClientSSTest.java index a511344..d345cb8 100644 --- a/client/src/test/java/org/onap/aaf/cadi/dme2/JU_DME2ClientSSTest.java +++ b/client/src/test/java/org/onap/aaf/cadi/dme2/JU_DME2ClientSSTest.java @@ -52,4 +52,63 @@ public class JU_DME2ClientSSTest { assertEquals(client.setLastResponse(0), 0); } + @Test + public void test1() throws IOException, DME2Exception { + DME2ClientSS client = new DME2ClientSS(null, "user", "pass"); + + assertNotNull(client); + + assertEquals(client.getID(), "user"); + assertEquals(client.setLastResponse(0), 0); + } + + @Test + public void test2() throws IOException, DME2Exception { + DME2ClientSS client = new DME2ClientSS(null, "user", "pass"); + + assertNotNull(client); + + assertEquals(client.getID(), "user"); + assertEquals(client.setLastResponse(0), 0); + } + + @Test + public void test3() throws IOException, DME2Exception { + DME2ClientSS client = new DME2ClientSS(null, "user", "pass"); + + assertNotNull(client); + + assertEquals(client.getID(), "user"); + assertEquals(client.setLastResponse(0), 0); + } + + @Test + public void test4() throws IOException, DME2Exception { + DME2ClientSS client = new DME2ClientSS(null, "user", "pass"); + + assertNotNull(client); + + assertEquals(client.getID(), "user"); + assertEquals(client.setLastResponse(0), 0); + } + + @Test + public void test5() throws IOException, DME2Exception { + DME2ClientSS client = new DME2ClientSS(null, "user", "pass"); + + assertNotNull(client); + + assertEquals(client.getID(), "user"); + assertEquals(client.setLastResponse(0), 0); + } + + @Test + public void test6() throws IOException, DME2Exception { + DME2ClientSS client = new DME2ClientSS(null, "user", "pass"); + + assertNotNull(client); + + assertEquals(client.getID(), "user"); + assertEquals(client.setLastResponse(0), 0); + } } -- cgit 1.2.3-korg