aboutsummaryrefslogtreecommitdiffstats
path: root/common-be/src/test/java
diff options
context:
space:
mode:
authorpriyanshu <pagarwal@amdocs.com>2018-12-27 14:50:30 +0530
committerpriyanshu <pagarwal@amdocs.com>2018-12-27 14:50:30 +0530
commit63a216338c392a587eb88f9fa89010495f79e03c (patch)
tree387e873795b0c860e411564274e4e6c8e2148094 /common-be/src/test/java
parent56ad07f5a6e107f198b239bbf6a10b1792dd5903 (diff)
Revert "Interface operation feature enhancements"
This reverts commit 01f825bc Change-Id: I9e41da46a410be335283a27758cb1e77a087046f Issue-ID: SDC-1999 Signed-off-by: priyanshu <pagarwal@amdocs.com>
Diffstat (limited to 'common-be/src/test/java')
-rw-r--r--common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/InterfaceOperationDataDefinitionTest.java159
-rw-r--r--common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/InterfaceOperationParamDataDefinitionTest.java61
2 files changed, 220 insertions, 0 deletions
diff --git a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/InterfaceOperationDataDefinitionTest.java b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/InterfaceOperationDataDefinitionTest.java
new file mode 100644
index 0000000000..e0e07fd259
--- /dev/null
+++ b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/InterfaceOperationDataDefinitionTest.java
@@ -0,0 +1,159 @@
+package org.openecomp.sdc.be.datatypes.elements;
+
+import org.junit.Test;
+
+public class InterfaceOperationDataDefinitionTest {
+
+ private InterfaceOperationDataDefinition createTestSubject() {
+ return new InterfaceOperationDataDefinition();
+ }
+
+ @Test
+ public void testCopyConstructor() throws Exception {
+ InterfaceOperationDataDefinition testSubject;
+
+ // default test
+ testSubject = createTestSubject();
+ new InterfaceOperationDataDefinition(testSubject);
+ }
+
+ @Test
+ public void testGetInputParams() throws Exception {
+ InterfaceOperationDataDefinition testSubject;
+ ListDataDefinition<InterfaceOperationParamDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInputParams();
+ }
+
+ @Test
+ public void testSetInputParams() throws Exception {
+ InterfaceOperationDataDefinition testSubject;
+ ListDataDefinition<InterfaceOperationParamDataDefinition> inputParams = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInputParams(inputParams);
+ }
+
+ @Test
+ public void testGetOutputParams() throws Exception {
+ InterfaceOperationDataDefinition testSubject;
+ ListDataDefinition<InterfaceOperationParamDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getOutputParams();
+ }
+
+ @Test
+ public void testSetOutputParams() throws Exception {
+ InterfaceOperationDataDefinition testSubject;
+ ListDataDefinition<InterfaceOperationParamDataDefinition> outputParams = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setOutputParams(outputParams);
+ }
+
+ @Test
+ public void testGetUniqueId() throws Exception {
+ InterfaceOperationDataDefinition testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getUniqueId();
+ }
+
+ @Test
+ public void testSetUniqueId() throws Exception {
+ InterfaceOperationDataDefinition testSubject;
+ String uid = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUniqueId(uid);
+ }
+
+ @Test
+ public void testGetDescription() throws Exception {
+ InterfaceOperationDataDefinition testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDescription();
+ }
+
+ @Test
+ public void testSetDescription() throws Exception {
+ InterfaceOperationDataDefinition testSubject;
+ String description = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDescription(description);
+ }
+
+ @Test
+ public void testGetOperationType() throws Exception {
+ InterfaceOperationDataDefinition testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getOperationType();
+ }
+
+ @Test
+ public void testSetOperationType() throws Exception {
+ InterfaceOperationDataDefinition testSubject;
+ String operationType = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setOperationType(operationType);
+ }
+
+ @Test
+ public void testGetToscaResourceName() throws Exception {
+ InterfaceOperationDataDefinition testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getToscaResourceName();
+ }
+
+ @Test
+ public void testSetToscaResourceName() throws Exception {
+ InterfaceOperationDataDefinition testSubject;
+ String toscaResourceName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setToscaResourceName(toscaResourceName);
+ }
+
+ @Test
+ public void testGetArtifactUUID() throws Exception {
+ InterfaceOperationDataDefinition testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactUUID();
+ }
+
+ @Test
+ public void testSetArtifactUUID() throws Exception {
+ InterfaceOperationDataDefinition testSubject;
+ String artifactUUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactUUID(artifactUUID);
+ }
+} \ No newline at end of file
diff --git a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/InterfaceOperationParamDataDefinitionTest.java b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/InterfaceOperationParamDataDefinitionTest.java
new file mode 100644
index 0000000000..e25adb3c2f
--- /dev/null
+++ b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/InterfaceOperationParamDataDefinitionTest.java
@@ -0,0 +1,61 @@
+package org.openecomp.sdc.be.datatypes.elements;
+
+import org.junit.Test;
+
+public class InterfaceOperationParamDataDefinitionTest {
+
+ private InterfaceOperationParamDataDefinition createTestSubject() {
+ return new InterfaceOperationParamDataDefinition();
+ }
+
+ @Test
+ public void testOverloadConstructor() throws Exception {
+ InterfaceOperationParamDataDefinition testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ new InterfaceOperationParamDataDefinition(testSubject);
+ new InterfaceOperationParamDataDefinition("", "",true, "");
+ }
+
+ @Test
+ public void testGetParamName() throws Exception {
+ InterfaceOperationParamDataDefinition testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getName();
+ }
+
+ @Test
+ public void testSetParamName() throws Exception {
+ InterfaceOperationParamDataDefinition testSubject;
+ String paramName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setName(paramName);
+ }
+
+ @Test
+ public void testGetParamId() throws Exception {
+ InterfaceOperationParamDataDefinition testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProperty();
+ }
+
+ @Test
+ public void testSetParamId() throws Exception {
+ InterfaceOperationParamDataDefinition testSubject;
+ String paramId = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setProperty(paramId);
+ }
+} \ No newline at end of file