summaryrefslogtreecommitdiffstats
path: root/vid-app-common
diff options
context:
space:
mode:
authorOfir Sonsino <os0695@att.com>2017-10-09 13:25:29 +0300
committerOfir Sonsino <os0695@att.com>2017-10-09 13:25:29 +0300
commit61091bdc1ea5736de68acabd84095ba6932d7b8b (patch)
tree6c92b68b684e60c4e72c0269debed1050bce59c6 /vid-app-common
parent78028f3b588241200e31b71b8190e9926af626e9 (diff)
Improve SONAR coverage
Change-Id: Icdae04aadd50e29a55db559a69495a688ea34b0e Issue-ID: VID-72 Signed-off-by: Ofir Sonsino <os0695@att.com>
Diffstat (limited to 'vid-app-common')
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/RelatedToTest.java36
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/TestSuite.java11
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelatedToPropertyTest.java55
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelationshipDataTest.java55
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/aai/model/TestSuite.java2
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/ArtifactTest.java277
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/SubResourceTest.java167
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/TestSuite.java2
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/policy/TestSuite.java2
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/policy/rest/RequestDetailsTest.java33
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/policy/rest/TestSuite.java11
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/roles/RoleProviderTest.java50
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/roles/TestSuite.java2
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/GetTimeSlotsRestObjectTest.java33
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostCreateNewVnfRestObjectTest.java33
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObjectTest.java33
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/RestObjectTest.java55
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/TestSuite.java12
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/scheduler/TestSuite.java2
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/RequestDetailsTest.java33
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/TestSuite.java11
21 files changed, 910 insertions, 5 deletions
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/RelatedToTest.java b/vid-app-common/src/test/java/org/openecomp/vid/RelatedToTest.java
new file mode 100644
index 000000000..9d4930080
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/RelatedToTest.java
@@ -0,0 +1,36 @@
+package org.openecomp.vid;
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class RelatedToTest {
+
+ private RelatedTo createTestSubject() {
+ return new RelatedTo();
+ }
+
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ RelatedTo testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ RelatedTo testSubject;
+ String name = "";
+ Object value = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/TestSuite.java
new file mode 100644
index 000000000..6e8b19602
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/TestSuite.java
@@ -0,0 +1,11 @@
+package org.openecomp.vid;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+@RunWith(Suite.class)
+@Suite.SuiteClasses(
+
+{ RelatedToTest.class, org.openecomp.vid.aai.TestSuite.class })
+public class TestSuite { // nothing
+}
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelatedToPropertyTest.java b/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelatedToPropertyTest.java
new file mode 100644
index 000000000..08a87173b
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelatedToPropertyTest.java
@@ -0,0 +1,55 @@
+package org.openecomp.vid.aai.model;
+
+import org.junit.Test;
+
+
+public class RelatedToPropertyTest {
+
+ private RelatedToProperty createTestSubject() {
+ return new RelatedToProperty();
+ }
+
+
+ @Test
+ public void testGetPropertyKey() throws Exception {
+ RelatedToProperty testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getPropertyKey();
+ }
+
+
+ @Test
+ public void testSetPropertyKey() throws Exception {
+ RelatedToProperty testSubject;
+ String propertyKey = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setPropertyKey(propertyKey);
+ }
+
+
+ @Test
+ public void testGetPropertyValue() throws Exception {
+ RelatedToProperty testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getPropertyValue();
+ }
+
+
+ @Test
+ public void testSetPropertyValue() throws Exception {
+ RelatedToProperty testSubject;
+ String propertyValue = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setPropertyValue(propertyValue);
+ }
+} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelationshipDataTest.java b/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelationshipDataTest.java
new file mode 100644
index 000000000..4df27ccd8
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelationshipDataTest.java
@@ -0,0 +1,55 @@
+package org.openecomp.vid.aai.model;
+
+import org.junit.Test;
+
+
+public class RelationshipDataTest {
+
+ private RelationshipData createTestSubject() {
+ return new RelationshipData();
+ }
+
+
+ @Test
+ public void testGetRelationshipKey() throws Exception {
+ RelationshipData testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRelationshipKey();
+ }
+
+
+ @Test
+ public void testSetRelationshipKey() throws Exception {
+ RelationshipData testSubject;
+ String relationshipKey = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRelationshipKey(relationshipKey);
+ }
+
+
+ @Test
+ public void testGetRelationshipValue() throws Exception {
+ RelationshipData testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRelationshipValue();
+ }
+
+
+ @Test
+ public void testSetRelationshipValue() throws Exception {
+ RelationshipData testSubject;
+ String relationshipValue = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRelationshipValue(relationshipValue);
+ }
+} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/aai/model/TestSuite.java
index bb4836270..34ca70bd8 100644
--- a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/TestSuite.java
+++ b/vid-app-common/src/test/java/org/openecomp/vid/aai/model/TestSuite.java
@@ -6,6 +6,6 @@ import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses(
-{ ServiceRelationshipsTest.class, RelationshipTest.class })
+{ ServiceRelationshipsTest.class, RelationshipTest.class, RelatedToPropertyTest.class, RelationshipDataTest.class })
public class TestSuite { // nothing
}
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/ArtifactTest.java b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/ArtifactTest.java
new file mode 100644
index 000000000..8251ca0c5
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/ArtifactTest.java
@@ -0,0 +1,277 @@
+package org.openecomp.vid.asdc.beans;
+
+import org.junit.Test;
+
+
+public class ArtifactTest {
+
+ private Artifact createTestSubject() {
+ return new Artifact();
+ }
+
+
+ @Test
+ public void testGetArtifactName() throws Exception {
+ Artifact testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactName();
+ }
+
+
+ @Test
+ public void testGetArtifactType() throws Exception {
+ Artifact testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactType();
+ }
+
+
+ @Test
+ public void testGetArtifactGroupType() throws Exception {
+ Artifact testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactGroupType();
+ }
+
+
+ @Test
+ public void testGetArtifactLabel() throws Exception {
+ Artifact testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactLabel();
+ }
+
+
+ @Test
+ public void testGetArtifactURL() throws Exception {
+ Artifact testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactURL();
+ }
+
+
+ @Test
+ public void testGetArtifactDescription() throws Exception {
+ Artifact testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactDescription();
+ }
+
+
+ @Test
+ public void testGetArtifactTimeout() throws Exception {
+ Artifact testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactTimeout();
+ }
+
+
+ @Test
+ public void testGetArtifactChecksum() throws Exception {
+ Artifact testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactChecksum();
+ }
+
+
+ @Test
+ public void testGetArtifactUUID() throws Exception {
+ Artifact testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactUUID();
+ }
+
+
+ @Test
+ public void testGetArtifactVersion() throws Exception {
+ Artifact testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactVersion();
+ }
+
+
+ @Test
+ public void testGetGeneratedFromUUID() throws Exception {
+ Artifact testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGeneratedFromUUID();
+ }
+
+
+ @Test
+ public void testSetArtifactName() throws Exception {
+ Artifact testSubject;
+ String artifactName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactName(artifactName);
+ }
+
+
+ @Test
+ public void testSetArtifactType() throws Exception {
+ Artifact testSubject;
+ String artifactType = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactType(artifactType);
+ }
+
+
+ @Test
+ public void testSetArtifactGroupType() throws Exception {
+ Artifact testSubject;
+ String artifactGroupType = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactGroupType(artifactGroupType);
+ }
+
+
+ @Test
+ public void testSetArtifactLabel() throws Exception {
+ Artifact testSubject;
+ String artifactLabel = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactLabel(artifactLabel);
+ }
+
+
+ @Test
+ public void testSetArtifactURL() throws Exception {
+ Artifact testSubject;
+ String artifactURL = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactURL(artifactURL);
+ }
+
+
+ @Test
+ public void testSetArtifactDescription() throws Exception {
+ Artifact testSubject;
+ String artifactDescription = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactDescription(artifactDescription);
+ }
+
+
+ @Test
+ public void testSetArtifactTimeout() throws Exception {
+ Artifact testSubject;
+ int artifactTimeout = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactTimeout(artifactTimeout);
+ }
+
+
+ @Test
+ public void testSetArtifactChecksum() throws Exception {
+ Artifact testSubject;
+ String artifactChecksum = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactChecksum(artifactChecksum);
+ }
+
+
+ @Test
+ public void testSetArtifactUUID() throws Exception {
+ Artifact testSubject;
+ String artifactUUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactUUID(artifactUUID);
+ }
+
+
+ @Test
+ public void testSetArtifactVersion() throws Exception {
+ Artifact testSubject;
+ String artifactVersion = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactVersion(artifactVersion);
+ }
+
+
+ @Test
+ public void testSetGeneratedFromUUID() throws Exception {
+ Artifact testSubject;
+ String generatedFromUUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGeneratedFromUUID(generatedFromUUID);
+ }
+
+
+ @Test
+ public void testHashCode() throws Exception {
+ Artifact testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactUUID("48a52540-8772-4368-9cdb-1f124ea5c931");
+ result = testSubject.hashCode();
+ }
+
+
+ @Test
+ public void testEquals() throws Exception {
+ Artifact testSubject;
+ Object o = null;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.equals(o);
+ }
+} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/SubResourceTest.java b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/SubResourceTest.java
new file mode 100644
index 000000000..75b0e9869
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/SubResourceTest.java
@@ -0,0 +1,167 @@
+package org.openecomp.vid.asdc.beans;
+
+import java.util.Collection;
+
+import org.junit.Test;
+
+
+public class SubResourceTest {
+
+ private SubResource createTestSubject() {
+ return new SubResource();
+ }
+
+
+ @Test
+ public void testGetResourceInstanceName() throws Exception {
+ SubResource testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceInstanceName();
+ }
+
+
+ @Test
+ public void testGetResourceName() throws Exception {
+ SubResource testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceName();
+ }
+
+
+ @Test
+ public void testGetResourceInvariantUUID() throws Exception {
+ SubResource testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceInvariantUUID();
+ }
+
+
+ @Test
+ public void testGetResourceVersion() throws Exception {
+ SubResource testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceVersion();
+ }
+
+
+ @Test
+ public void testGetResoucreType() throws Exception {
+ SubResource testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResoucreType();
+ }
+
+
+ @Test
+ public void testGetResourceUUID() throws Exception {
+ SubResource testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceUUID();
+ }
+
+
+ @Test
+ public void testGetArtifacts() throws Exception {
+ SubResource testSubject;
+ Collection<Artifact> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifacts();
+ }
+
+
+ @Test
+ public void testSetResourceInstanceName() throws Exception {
+ SubResource testSubject;
+ String resourceInstanceName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceInstanceName(resourceInstanceName);
+ }
+
+
+ @Test
+ public void testSetResourceName() throws Exception {
+ SubResource testSubject;
+ String resourceName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceName(resourceName);
+ }
+
+
+ @Test
+ public void testSetResourceInvariantUUID() throws Exception {
+ SubResource testSubject;
+ String resourceInvariantUUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceInvariantUUID(resourceInvariantUUID);
+ }
+
+
+ @Test
+ public void testSetResourceVersion() throws Exception {
+ SubResource testSubject;
+ String resourceVersion = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceVersion(resourceVersion);
+ }
+
+
+ @Test
+ public void testSetResoucreType() throws Exception {
+ SubResource testSubject;
+ String resourceType = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResoucreType(resourceType);
+ }
+
+
+ @Test
+ public void testSetResourceUUID() throws Exception {
+ SubResource testSubject;
+ String resourceUUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceUUID(resourceUUID);
+ }
+
+
+ @Test
+ public void testSetArtifacts() throws Exception {
+ SubResource testSubject;
+ Collection<Artifact> artifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifacts(artifacts);
+ }
+} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/TestSuite.java
index 2583c6ceb..861c5c36e 100644
--- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/TestSuite.java
+++ b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/TestSuite.java
@@ -6,6 +6,6 @@ import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses(
-{ ResourceTest.class })
+{ ArtifactTest.class, ResourceTest.class, SubResourceTest.class })
public class TestSuite { // nothing
}
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/policy/TestSuite.java
index b0ff46598..7d0b4eb2d 100644
--- a/vid-app-common/src/test/java/org/openecomp/vid/policy/TestSuite.java
+++ b/vid-app-common/src/test/java/org/openecomp/vid/policy/TestSuite.java
@@ -7,6 +7,6 @@ import org.junit.runners.Suite;
@Suite.SuiteClasses(
{ RestObjectTest.class, PolicyResponseWrapperTest.class, PolicyRestIntTest.class, PolicyUtilTest.class,
- PolicyRestInterfaceTest.class })
+ PolicyRestInterfaceTest.class, org.openecomp.vid.policy.rest.TestSuite.class })
public class TestSuite { // nothing
}
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/RequestDetailsTest.java b/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/RequestDetailsTest.java
new file mode 100644
index 000000000..705775577
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/RequestDetailsTest.java
@@ -0,0 +1,33 @@
+package org.openecomp.vid.policy.rest;
+
+import org.junit.Test;
+
+
+public class RequestDetailsTest {
+
+ private RequestDetails createTestSubject() {
+ return new RequestDetails();
+ }
+
+
+ @Test
+ public void testGetPolicyName() throws Exception {
+ RequestDetails testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getPolicyName();
+ }
+
+
+ @Test
+ public void testSetPolicyName() throws Exception {
+ RequestDetails testSubject;
+ String policyName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setPolicyName(policyName);
+ }
+} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/TestSuite.java
new file mode 100644
index 000000000..9b491c869
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/TestSuite.java
@@ -0,0 +1,11 @@
+package org.openecomp.vid.policy.rest;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+@RunWith(Suite.class)
+@Suite.SuiteClasses(
+
+{ RequestDetailsTest.class })
+public class TestSuite { // nothing
+}
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/roles/RoleProviderTest.java b/vid-app-common/src/test/java/org/openecomp/vid/roles/RoleProviderTest.java
new file mode 100644
index 000000000..97f9c47fe
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/roles/RoleProviderTest.java
@@ -0,0 +1,50 @@
+package org.openecomp.vid.roles;
+
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.junit.Test;
+
+
+public class RoleProviderTest {
+
+ private RoleProvider createTestSubject() {
+ return new RoleProvider();
+ }
+
+
+ @Test
+ public void testExtractRoleFromSession() throws Exception {
+ HttpServletRequest request = null;
+ List<String> result;
+
+ // default test
+ result = RoleProvider.extractRoleFromSession(request);
+ }
+
+
+ @Test
+ public void testGetUserRoles() throws Exception {
+ RoleProvider testSubject;
+ HttpServletRequest request = null;
+ List<Role> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getUserRoles(request);
+ }
+
+
+ @Test
+ public void testSplitRole() throws Exception {
+ RoleProvider testSubject;
+ String roleAsString = "";
+ String[] result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.splitRole(roleAsString);
+ }
+
+} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/roles/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/roles/TestSuite.java
index 2ee03aef4..df87ac070 100644
--- a/vid-app-common/src/test/java/org/openecomp/vid/roles/TestSuite.java
+++ b/vid-app-common/src/test/java/org/openecomp/vid/roles/TestSuite.java
@@ -6,6 +6,6 @@ import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses(
-{ RoleValidatorTest.class })
+{ RoleValidatorTest.class, RoleProviderTest.class })
public class TestSuite { // nothing
}
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/GetTimeSlotsRestObjectTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/GetTimeSlotsRestObjectTest.java
new file mode 100644
index 000000000..9041bdbfc
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/GetTimeSlotsRestObjectTest.java
@@ -0,0 +1,33 @@
+package org.openecomp.vid.scheduler.RestObjects;
+
+import org.junit.Test;
+
+
+public class GetTimeSlotsRestObjectTest {
+
+ private GetTimeSlotsRestObject createTestSubject() {
+ return new GetTimeSlotsRestObject();
+ }
+
+
+ @Test
+ public void testSetUUID() throws Exception {
+ GetTimeSlotsRestObject testSubject;
+ String uuid = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUUID(uuid);
+ }
+
+
+ @Test
+ public void testGetUUID() throws Exception {
+ GetTimeSlotsRestObject testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getUUID();
+ }
+} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostCreateNewVnfRestObjectTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostCreateNewVnfRestObjectTest.java
new file mode 100644
index 000000000..79e978847
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostCreateNewVnfRestObjectTest.java
@@ -0,0 +1,33 @@
+package org.openecomp.vid.scheduler.RestObjects;
+
+import org.junit.Test;
+
+
+public class PostCreateNewVnfRestObjectTest {
+
+ private PostCreateNewVnfRestObject createTestSubject() {
+ return new PostCreateNewVnfRestObject();
+ }
+
+
+ @Test
+ public void testSetUUID() throws Exception {
+ PostCreateNewVnfRestObject testSubject;
+ String uuid = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUUID(uuid);
+ }
+
+
+ @Test
+ public void testGetUUID() throws Exception {
+ PostCreateNewVnfRestObject testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getUUID();
+ }
+} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObjectTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObjectTest.java
new file mode 100644
index 000000000..dd2e6f7c9
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObjectTest.java
@@ -0,0 +1,33 @@
+package org.openecomp.vid.scheduler.RestObjects;
+
+import org.junit.Test;
+
+
+public class PostSubmitVnfChangeRestObjectTest {
+
+ private PostSubmitVnfChangeRestObject createTestSubject() {
+ return new PostSubmitVnfChangeRestObject();
+ }
+
+
+ @Test
+ public void testSetUUID() throws Exception {
+ PostSubmitVnfChangeRestObject testSubject;
+ String uuid = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUUID(uuid);
+ }
+
+
+ @Test
+ public void testGetUUID() throws Exception {
+ PostSubmitVnfChangeRestObject testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getUUID();
+ }
+} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/RestObjectTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/RestObjectTest.java
new file mode 100644
index 000000000..5ab609ac6
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/RestObjectTest.java
@@ -0,0 +1,55 @@
+package org.openecomp.vid.scheduler.RestObjects;
+
+import org.apache.poi.hssf.record.formula.functions.T;
+import org.junit.Test;
+
+
+public class RestObjectTest {
+
+ private RestObject createTestSubject() {
+ return new RestObject();
+ }
+
+
+ @Test
+ public void testSet() throws Exception {
+ RestObject testSubject;
+ T t = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.set(t);
+ }
+
+
+ @Test
+ public void testGet() throws Exception {
+ RestObject testSubject;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.get();
+ }
+
+
+ @Test
+ public void testSetStatusCode() throws Exception {
+ RestObject testSubject;
+ int v = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setStatusCode(v);
+ }
+
+
+ @Test
+ public void testGetStatusCode() throws Exception {
+ RestObject testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getStatusCode();
+ }
+} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/TestSuite.java
new file mode 100644
index 000000000..8e5321424
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/TestSuite.java
@@ -0,0 +1,12 @@
+package org.openecomp.vid.scheduler.RestObjects;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+@RunWith(Suite.class)
+@Suite.SuiteClasses(
+
+{ RestObjectTest.class, GetTimeSlotsRestObjectTest.class, PostSubmitVnfChangeRestObjectTest.class,
+ PostCreateNewVnfRestObjectTest.class })
+public class TestSuite { // nothing
+}
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
index 8babb3885..61ab05d02 100644
--- 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
@@ -6,6 +6,6 @@ import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses(
-{ SchedulerRestInterfaceTest.class, org.openecomp.vid.scheduler.SchedulerResponseWrappers.TestSuite.class })
+{ SchedulerRestInterfaceTest.class, org.openecomp.vid.scheduler.RestObjects.TestSuite.class })
public class TestSuite { // nothing
}
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/RequestDetailsTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/RequestDetailsTest.java
new file mode 100644
index 000000000..190b8c5a7
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/RequestDetailsTest.java
@@ -0,0 +1,33 @@
+package org.openecomp.vid.scheduler.rest;
+
+import org.junit.Test;
+
+
+public class RequestDetailsTest {
+
+ private RequestDetails createTestSubject() {
+ return new RequestDetails();
+ }
+
+
+ @Test
+ public void testGetDomain() throws Exception {
+ RequestDetails testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDomain();
+ }
+
+
+ @Test
+ public void testSetDomain() throws Exception {
+ RequestDetails testSubject;
+ String domain = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDomain(domain);
+ }
+} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/TestSuite.java
new file mode 100644
index 000000000..714d0b085
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/TestSuite.java
@@ -0,0 +1,11 @@
+package org.openecomp.vid.scheduler.rest;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+@RunWith(Suite.class)
+@Suite.SuiteClasses(
+
+{ RequestDetailsTest.class })
+public class TestSuite { // nothing
+}