summaryrefslogtreecommitdiffstats
path: root/catalog-be/src
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-be/src')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/merge/instance/RelationMergeInfo.java37
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/components/merge/instance/RelationMergeInfoTest.java65
2 files changed, 10 insertions, 92 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/merge/instance/RelationMergeInfo.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/merge/instance/RelationMergeInfo.java
index fb814b54dd..4297aa82a2 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/merge/instance/RelationMergeInfo.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/merge/instance/RelationMergeInfo.java
@@ -7,9 +7,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -20,34 +20,17 @@
package org.openecomp.sdc.be.components.merge.instance;
+import lombok.AllArgsConstructor;
+import lombok.Getter;
import org.openecomp.sdc.be.model.RequirementCapabilityRelDef;
+@Getter
+@AllArgsConstructor
public class RelationMergeInfo {
- private String capReqType;
- private String capOwnerName;
- private RequirementCapabilityRelDef relDef;
- private String capReqName;
- public RelationMergeInfo(String capReqType, String capReqName, String capOwnerName, RequirementCapabilityRelDef relDef) {
- this.capReqType = capReqType;
- this.capReqName = capReqName;
- this.capOwnerName = capOwnerName;
- this.relDef = relDef;
- }
-
- public String getCapReqType() {
- return capReqType;
- }
-
- public String getCapOwnerName() {
- return capOwnerName;
- }
- public RequirementCapabilityRelDef getRelDef() {
- return relDef;
- }
-
- public String getCapReqName() {
- return capReqName;
- }
+ private final String capReqType;
+ private final String capReqName;
+ private final String capOwnerName;
+ private final RequirementCapabilityRelDef relDef;
}
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/merge/instance/RelationMergeInfoTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/merge/instance/RelationMergeInfoTest.java
deleted file mode 100644
index ea35407176..0000000000
--- a/catalog-be/src/test/java/org/openecomp/sdc/be/components/merge/instance/RelationMergeInfoTest.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.sdc.be.components.merge.instance;
-
-import org.junit.Test;
-import org.openecomp.sdc.be.model.RequirementCapabilityRelDef;
-
-public class RelationMergeInfoTest {
-
- private RelationMergeInfo createTestSubject() {
- return new RelationMergeInfo("", "", "", new RequirementCapabilityRelDef());
- }
-
- @Test
- public void testGetCapReqType() throws Exception {
- RelationMergeInfo testSubject;
- String result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getCapReqType();
- }
-
-
- @Test
- public void testGetRelDef() throws Exception {
- RelationMergeInfo testSubject;
- RequirementCapabilityRelDef result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getRelDef();
- }
-
-
-
- @Test
- public void testGetCapReqName() throws Exception {
- RelationMergeInfo testSubject;
- String result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getCapReqName();
- }
-
-}