From 01e80b505c8095c5c40290bb17cbbfcb39b05247 Mon Sep 17 00:00:00 2001 From: vasraz Date: Mon, 3 Aug 2020 16:26:49 +0100 Subject: Remove needless Getter/Setter testing Change-Id: I4802e15a57b01d520e875db295df2eb826b6b5c0 Signed-off-by: Vasyl Razinkov Issue-ID: SDC-2708 --- .../merge/instance/RelationMergeInfo.java | 37 ++++-------- .../merge/instance/RelationMergeInfoTest.java | 65 ---------------------- 2 files changed, 10 insertions(+), 92 deletions(-) delete mode 100644 catalog-be/src/test/java/org/openecomp/sdc/be/components/merge/instance/RelationMergeInfoTest.java (limited to 'catalog-be') 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(); - } - -} -- cgit 1.2.3-korg