aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/onap/vid/mso/model/OperationalEnvironmentActivateInfoTest.java
diff options
context:
space:
mode:
authorSonsino, Ofir (os0695) <os0695@intl.att.com>2018-03-18 20:07:39 +0200
committerSonsino, Ofir (os0695) <os0695@intl.att.com>2018-03-18 20:07:39 +0200
commit545434fd679fa918288b913a6525d2e05777b22a (patch)
tree43c3af6f76a3d6a1a3cebebac082943ae879c19b /vid-app-common/src/test/java/org/onap/vid/mso/model/OperationalEnvironmentActivateInfoTest.java
parent8fdf2dee7684f4911a58a2350626300af52b6e4d (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/OperationalEnvironmentActivateInfoTest.java')
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/mso/model/OperationalEnvironmentActivateInfoTest.java44
1 files changed, 44 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 000000000..9e00a7810
--- /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