summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2020-08-03 16:26:49 +0100
committerJulien Bertozzi <julien.bertozzi@intl.att.com>2020-08-06 09:46:33 +0000
commit01e80b505c8095c5c40290bb17cbbfcb39b05247 (patch)
treecc0dab65767fd79cb4de01eb2a68557764a15bf3
parenta4e013f83327d820808bd565d2356a7a87689ee8 (diff)
Remove needless Getter/Setter testing
Change-Id: I4802e15a57b01d520e875db295df2eb826b6b5c0 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2708
-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();
- }
-
-}
"p">: name: aai-filebeat namespace: {{ include "common.namespace" . }} data: {{ tpl (.Files.Glob "resources/config/log/filebeat/*").AsConfig . | indent 2 }} --- apiVersion: v1 kind: ConfigMap metadata: name: aai-deployment-configmap namespace: {{ include "common.namespace" . }} data: {{ tpl (.Files.Glob "resources/config/haproxy/haproxy.cfg").AsConfig . | indent 2 }} --- apiVersion: v1 kind: Secret metadata: name: aai-haproxy-secret namespace: {{ include "common.namespace" . }} type: Opaque data: {{ tpl (.Files.Glob "resources/config/haproxy/aai.pem").AsSecrets . | indent 2 }} # This is a shared key for both resources and traversal --- apiVersion: v1 kind: Secret metadata: name: aai-auth-truststore-secret namespace: {{ include "common.namespace" . }} type: Opaque data: {{ tpl (.Files.Glob "resources/config/aai/*").AsSecrets . | indent 2 }}