summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2020-03-18 13:29:59 +0000
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-03-19 16:03:14 +0000
commitb3e9914ce32f3e1b11396f88b3af9ae00c76479d (patch)
tree222a29f447caf8340e9fed42495bda12431c9839
parent9d41d534fd74ea58e80aedf441f8bc4d818d2d93 (diff)
Increase test coverage
Change-Id: I5b666658061bf8838e1af952f3b808da6e113c7a Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2833
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/UploadNodeFilterCapabilitiesInfo.java19
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadNodeFilterCapabilitiesInfoTest.java (renamed from catalog-model/src/main/java/org/openecomp/sdc/be/model/PropertyValueDefinition.java)29
2 files changed, 18 insertions, 30 deletions
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<UploadNodeFilterPropertyInfo> properties;
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public List<UploadNodeFilterPropertyInfo> getProperties() {
- return properties;
- }
-
- public void setProperties(List<UploadNodeFilterPropertyInfo> properties) {
- this.properties = properties;
- }
}
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/PropertyValueDefinition.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadNodeFilterCapabilitiesInfoTest.java
index a10c1e0ae1..763652810d 100644
--- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/PropertyValueDefinition.java
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadNodeFilterCapabilitiesInfoTest.java
@@ -2,14 +2,14 @@
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * 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.
@@ -20,23 +20,22 @@
package org.openecomp.sdc.be.model;
-import org.openecomp.sdc.be.datatypes.elements.InputsValueDataDefinition;
+import org.junit.Assert;
+import org.junit.Test;
-public class PropertyValueDefinition extends InputsValueDataDefinition implements IOperationParameter {
+public class UploadNodeFilterCapabilitiesInfoTest {
- public PropertyValueDefinition() {
- super();
+ private UploadNodeFilterCapabilitiesInfo createTestSubject() {
+ return new UploadNodeFilterCapabilitiesInfo();
}
- public PropertyValueDefinition(String name, String value) {
- super(name, value);
+ @Test
+ public void testBuildDummyCatalogUpdateTimestamp() {
+ UploadNodeFilterCapabilitiesInfo testSubject;
- }
-
- @Override
- public boolean isDefinition() {
- // TODO Auto-generated method stub
- return false;
+ // default test
+ testSubject = createTestSubject();
+ Assert.assertNotNull(testSubject);
}
}