From b3e9914ce32f3e1b11396f88b3af9ae00c76479d Mon Sep 17 00:00:00 2001 From: vasraz Date: Wed, 18 Mar 2020 13:29:59 +0000 Subject: Increase test coverage Change-Id: I5b666658061bf8838e1af952f3b808da6e113c7a Signed-off-by: Vasyl Razinkov Issue-ID: SDC-2833 --- .../sdc/be/model/PropertyValueDefinition.java | 42 ---------------------- .../be/model/UploadNodeFilterCapabilitiesInfo.java | 19 +++------- .../UploadNodeFilterCapabilitiesInfoTest.java | 41 +++++++++++++++++++++ 3 files changed, 45 insertions(+), 57 deletions(-) delete mode 100644 catalog-model/src/main/java/org/openecomp/sdc/be/model/PropertyValueDefinition.java create mode 100644 catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadNodeFilterCapabilitiesInfoTest.java (limited to 'catalog-model') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/PropertyValueDefinition.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/PropertyValueDefinition.java deleted file mode 100644 index a10c1e0ae1..0000000000 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/PropertyValueDefinition.java +++ /dev/null @@ -1,42 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 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.model; - -import org.openecomp.sdc.be.datatypes.elements.InputsValueDataDefinition; - -public class PropertyValueDefinition extends InputsValueDataDefinition implements IOperationParameter { - - public PropertyValueDefinition() { - super(); - } - - public PropertyValueDefinition(String name, String value) { - super(name, value); - - } - - @Override - public boolean isDefinition() { - // TODO Auto-generated method stub - return false; - } - -} diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/UploadNodeFilterCapabilitiesInfo.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/UploadNodeFilterCapabilitiesInfo.java index 2339534266..4b14f9518d 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/UploadNodeFilterCapabilitiesInfo.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/UploadNodeFilterCapabilitiesInfo.java @@ -16,25 +16,14 @@ package org.openecomp.sdc.be.model; import java.util.List; +import lombok.Getter; +import lombok.Setter; +@Getter +@Setter public class UploadNodeFilterCapabilitiesInfo { private String name; private List properties; - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public List getProperties() { - return properties; - } - - public void setProperties(List properties) { - this.properties = properties; - } } diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadNodeFilterCapabilitiesInfoTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadNodeFilterCapabilitiesInfoTest.java new file mode 100644 index 0000000000..763652810d --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadNodeFilterCapabilitiesInfoTest.java @@ -0,0 +1,41 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2020, Nordix Foundation. 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.model; + +import org.junit.Assert; +import org.junit.Test; + +public class UploadNodeFilterCapabilitiesInfoTest { + + private UploadNodeFilterCapabilitiesInfo createTestSubject() { + return new UploadNodeFilterCapabilitiesInfo(); + } + + @Test + public void testBuildDummyCatalogUpdateTimestamp() { + UploadNodeFilterCapabilitiesInfo testSubject; + + // default test + testSubject = createTestSubject(); + Assert.assertNotNull(testSubject); + } + +} -- cgit 1.2.3-korg