diff options
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 |