diff options
Diffstat (limited to 'vid-app-common/src/test/java/org/openecomp/vid/asdc/beans')
3 files changed, 445 insertions, 1 deletions
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 00000000..8251ca0c --- /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 00000000..75b0e986 --- /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 2583c6ce..861c5c36 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 } |