diff options
Diffstat (limited to 'vid-app-common/src/test/java/org/openecomp/vid/scheduler')
6 files changed, 236 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapperTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapperTest.java new file mode 100644 index 00000000..16675dd1 --- /dev/null +++ b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapperTest.java @@ -0,0 +1,55 @@ +package org.openecomp.vid.scheduler.SchedulerResponseWrappers; + +import org.junit.Test; + + +public class PostCreateNewVnfWrapperTest { + + private PostCreateNewVnfWrapper createTestSubject() { + return new PostCreateNewVnfWrapper(); + } + + + @Test + public void testGetUuid() throws Exception { + PostCreateNewVnfWrapper testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUuid(); + } + + + @Test + public void testSetUuid() throws Exception { + PostCreateNewVnfWrapper testSubject; + String v = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setUuid(v); + } + + + @Test + public void testToString() throws Exception { + PostCreateNewVnfWrapper testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + + @Test + public void testGetResponse() throws Exception { + PostCreateNewVnfWrapper testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResponse(); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostSubmitVnfChangeTimeSlotsWrapperTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostSubmitVnfChangeTimeSlotsWrapperTest.java new file mode 100644 index 00000000..ffe03bf0 --- /dev/null +++ b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostSubmitVnfChangeTimeSlotsWrapperTest.java @@ -0,0 +1,55 @@ +package org.openecomp.vid.scheduler.SchedulerResponseWrappers; + +import org.junit.Test; + + +public class PostSubmitVnfChangeTimeSlotsWrapperTest { + + private PostSubmitVnfChangeTimeSlotsWrapper createTestSubject() { + return new PostSubmitVnfChangeTimeSlotsWrapper(); + } + + + @Test + public void testGetUuid() throws Exception { + PostSubmitVnfChangeTimeSlotsWrapper testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUuid(); + } + + + @Test + public void testSetUuid() throws Exception { + PostSubmitVnfChangeTimeSlotsWrapper testSubject; + String v = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setUuid(v); + } + + + @Test + public void testToString() throws Exception { + PostSubmitVnfChangeTimeSlotsWrapper testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + + @Test + public void testGetResponse() throws Exception { + PostSubmitVnfChangeTimeSlotsWrapper testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResponse(); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/SchedulerResponseWrapperTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/SchedulerResponseWrapperTest.java new file mode 100644 index 00000000..c0fcb591 --- /dev/null +++ b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/SchedulerResponseWrapperTest.java @@ -0,0 +1,77 @@ +package org.openecomp.vid.scheduler.SchedulerResponseWrappers; + +import org.junit.Test; + + +public class SchedulerResponseWrapperTest { + + private SchedulerResponseWrapper createTestSubject() { + return new SchedulerResponseWrapper(); + } + + + @Test + public void testGetEntity() throws Exception { + SchedulerResponseWrapper testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEntity(); + } + + + @Test + public void testGetStatus() throws Exception { + SchedulerResponseWrapper testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getStatus(); + } + + + @Test + public void testSetStatus() throws Exception { + SchedulerResponseWrapper testSubject; + int v = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setStatus(v); + } + + + @Test + public void testSetEntity() throws Exception { + SchedulerResponseWrapper testSubject; + String v = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEntity(v); + } + + + @Test + public void testToString() throws Exception { + SchedulerResponseWrapper testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + + @Test + public void testGetResponse() throws Exception { + SchedulerResponseWrapper testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResponse(); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/TestSuite.java new file mode 100644 index 00000000..a85a9f3d --- /dev/null +++ b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/TestSuite.java @@ -0,0 +1,12 @@ +package org.openecomp.vid.scheduler.SchedulerResponseWrappers; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +@RunWith(Suite.class) +@Suite.SuiteClasses( + +{ PostSubmitVnfChangeTimeSlotsWrapperTest.class, PostCreateNewVnfWrapperTest.class, + SchedulerResponseWrapperTest.class }) +public class TestSuite { // nothing +} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerRestInterfaceTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerRestInterfaceTest.java new file mode 100644 index 00000000..9dba924f --- /dev/null +++ b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerRestInterfaceTest.java @@ -0,0 +1,26 @@ +package org.openecomp.vid.scheduler; + +import org.apache.poi.hssf.record.formula.functions.T; +import org.json.simple.JSONObject; +import org.junit.Test; + +public class SchedulerRestInterfaceTest { + + private SchedulerRestInterface createTestSubject() { + return new SchedulerRestInterface(); + } + + + + @Test + public void testLogRequest() throws Exception { + SchedulerRestInterface testSubject; + JSONObject requestDetails = null; + + // default test + testSubject = createTestSubject(); + testSubject.logRequest(requestDetails); + } + + +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/TestSuite.java new file mode 100644 index 00000000..8babb388 --- /dev/null +++ b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/TestSuite.java @@ -0,0 +1,11 @@ +package org.openecomp.vid.scheduler; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +@RunWith(Suite.class) +@Suite.SuiteClasses( + +{ SchedulerRestInterfaceTest.class, org.openecomp.vid.scheduler.SchedulerResponseWrappers.TestSuite.class }) +public class TestSuite { // nothing +} |