Increase test coverage 65/103865/3
authorvasraz <vasyl.razinkov@est.tech>
Wed, 18 Mar 2020 13:29:59 +0000 (13:29 +0000)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Thu, 19 Mar 2020 16:03:14 +0000 (16:03 +0000)
Change-Id: I5b666658061bf8838e1af952f3b808da6e113c7a
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-2833

catalog-model/src/main/java/org/openecomp/sdc/be/model/UploadNodeFilterCapabilitiesInfo.java
catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadNodeFilterCapabilitiesInfoTest.java [moved from catalog-model/src/main/java/org/openecomp/sdc/be/model/PropertyValueDefinition.java with 64% similarity]

index 2339534..4b14f95 100644 (file)
 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;
-    }
 }
@@ -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.
 
 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);
     }
 
 }