summaryrefslogtreecommitdiffstats
path: root/common-be/src/test/java
diff options
context:
space:
mode:
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