diff options
author | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-18 20:07:39 +0200 |
---|---|---|
committer | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-18 20:07:39 +0200 |
commit | 545434fd679fa918288b913a6525d2e05777b22a (patch) | |
tree | 43c3af6f76a3d6a1a3cebebac082943ae879c19b /vid-app-common/src/test/java/org/onap/vid/mso/model | |
parent | 8fdf2dee7684f4911a58a2350626300af52b6e4d (diff) |
Unit tests
Change-Id: I43cd9c20e5576a63a0d0f9e78a91c27fcf32b2ad
Issue-ID: VID-197
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/mso/model')
2 files changed, 84 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/mso/model/OperationalEnvironmentActivateInfoTest.java b/vid-app-common/src/test/java/org/onap/vid/mso/model/OperationalEnvironmentActivateInfoTest.java new file mode 100644 index 00000000..9e00a781 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/mso/model/OperationalEnvironmentActivateInfoTest.java @@ -0,0 +1,44 @@ +package org.onap.vid.mso.model; + +import org.junit.Test; +import org.onap.vid.controllers.OperationalEnvironmentController; +import org.onap.vid.controllers.OperationalEnvironmentController.OperationalEnvironmentActivateBody; +import org.onap.vid.controllers.OperationalEnvironmentController.OperationalEnvironmentManifest; + +public class OperationalEnvironmentActivateInfoTest { + + private OperationalEnvironmentActivateInfo createTestSubject() { + OperationalEnvironmentController.OperationalEnvironmentActivateBody a = new OperationalEnvironmentActivateBody("a", "b", "c", new OperationalEnvironmentManifest()); + return new OperationalEnvironmentActivateInfo(a, "", ""); + } + + @Test + public void testGetUserId() throws Exception { + OperationalEnvironmentActivateInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUserId(); + } + + @Test + public void testGetOperationalEnvironmentId() throws Exception { + OperationalEnvironmentActivateInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOperationalEnvironmentId(); + } + + @Test + public void testToString() throws Exception { + OperationalEnvironmentActivateInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/mso/model/OperationalEnvironmentDeactivateInfoTest.java b/vid-app-common/src/test/java/org/onap/vid/mso/model/OperationalEnvironmentDeactivateInfoTest.java new file mode 100644 index 00000000..70ed02f3 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/mso/model/OperationalEnvironmentDeactivateInfoTest.java @@ -0,0 +1,40 @@ +package org.onap.vid.mso.model; + +import org.junit.Test; + +public class OperationalEnvironmentDeactivateInfoTest { + + private OperationalEnvironmentDeactivateInfo createTestSubject() { + return new OperationalEnvironmentDeactivateInfo("", ""); + } + + @Test + public void testGetUserId() throws Exception { + OperationalEnvironmentDeactivateInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUserId(); + } + + @Test + public void testGetOperationalEnvironmentId() throws Exception { + OperationalEnvironmentDeactivateInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOperationalEnvironmentId(); + } + + @Test + public void testToString() throws Exception { + OperationalEnvironmentDeactivateInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } +}
\ No newline at end of file |