aboutsummaryrefslogtreecommitdiffstats
path: root/common-be/src/test
diff options
context:
space:
mode:
authorpriyanshu <pagarwal@amdocs.com>2019-01-14 15:46:55 +0530
committerpriyanshu <pagarwal@amdocs.com>2019-01-14 15:46:55 +0530
commit5b9d9a134778d4dc7bf45474ba13be6ba0c46282 (patch)
treea9dde66cc370513384670ad9587605795774bfbd /common-be/src/test
parentefc185c60153bed4988abbb159e2103ec7653f83 (diff)
Interface operation feature enhancements
1. API restructuring to enhance model and provide more capabilities. 2. Allowed multiple interface creation under same resource/service. 3. Enhanced validations to align with updated model. 4. API restructuring to align UI model with Tosca model. 5. Enhanced Junit and code coverage. 6. Added BDD and CI-API tests. Change-Id: I2d8ac8a6154fd9be8254836ba0da1540210031c0 Issue-ID: SDC-1999 Signed-off-by: priyanshu <pagarwal@amdocs.com>
Diffstat (limited to 'common-be/src/test')
-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, 0 insertions, 220 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
deleted file mode 100644
index e0e07fd259..0000000000
--- a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/InterfaceOperationDataDefinitionTest.java
+++ /dev/null
@@ -1,159 +0,0 @@
-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
deleted file mode 100644
index e25adb3c2f..0000000000
--- a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/InterfaceOperationParamDataDefinitionTest.java
+++ /dev/null
@@ -1,61 +0,0 @@
-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