Remove needless Getter/Setter testing 55/110855/3
authorvasraz <vasyl.razinkov@est.tech>
Mon, 3 Aug 2020 15:26:49 +0000 (16:26 +0100)
committerJulien Bertozzi <julien.bertozzi@intl.att.com>
Thu, 6 Aug 2020 09:46:33 +0000 (09:46 +0000)
Change-Id: I4802e15a57b01d520e875db295df2eb826b6b5c0
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-2708

catalog-be/src/main/java/org/openecomp/sdc/be/components/merge/instance/RelationMergeInfo.java
catalog-be/src/test/java/org/openecomp/sdc/be/components/merge/instance/RelationMergeInfoTest.java [deleted file]

index fb814b5..4297aa8 100644 (file)
@@ -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.
 
 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 (file)
index ea35407..0000000
+++ /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();
-       }
-
-}