summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/test/java/org/openecomp/sdc/be/components/ResourceTestUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-be/src/test/java/org/openecomp/sdc/be/components/ResourceTestUtils.java')
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/components/ResourceTestUtils.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/ResourceTestUtils.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/ResourceTestUtils.java
index e74a84c809..b753849a3c 100644
--- a/catalog-be/src/test/java/org/openecomp/sdc/be/components/ResourceTestUtils.java
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/ResourceTestUtils.java
@@ -20,14 +20,14 @@
package org.openecomp.sdc.be.components;
-import java.util.ArrayList;
-import java.util.List;
-
import org.openecomp.sdc.be.datatypes.enums.ResourceTypeEnum;
import org.openecomp.sdc.be.model.Resource;
import org.openecomp.sdc.be.model.Service;
import org.openecomp.sdc.be.model.category.CategoryDefinition;
+import java.util.ArrayList;
+import java.util.List;
+
public class ResourceTestUtils {
public static Resource prepareResource(int resourceIndex) {
@@ -38,10 +38,10 @@ public class ResourceTestUtils {
r.setVendorRelease("vendor release");
r.setContactId("as123y");
r.addCategory("Generic", "Infrastructure");
- List<String> arr = new ArrayList<String>();
+ List<String> arr = new ArrayList<>();
arr.add("tosca.nodes.Root");
r.setDerivedFrom(arr);
- List<String> arr1 = new ArrayList<String>();
+ List<String> arr1 = new ArrayList<>();
arr1.add(r.getName());
r.setTags(arr1);
r.setIcon("borderElement");
@@ -58,10 +58,10 @@ public class ResourceTestUtils {
r.setContactId("as123y");
r.setResourceType(resourceType);
r.addCategory("Generic", "Infrastructure");
- List<String> arr = new ArrayList<String>();
+ List<String> arr = new ArrayList<>();
arr.add("tosca.nodes.Root");
r.setDerivedFrom(arr);
- List<String> arr1 = new ArrayList<String>();
+ List<String> arr1 = new ArrayList<>();
arr1.add(r.getName());
r.setTags(arr1);
r.setIcon("borderElement");
@@ -73,7 +73,7 @@ public class ResourceTestUtils {
service.setName("service_" + serviceIndex);
service.setDescription("desc");
service.setIcon("icon-service-red1");
- List<String> tags = new ArrayList<String>();
+ List<String> tags = new ArrayList<>();
tags.add(service.getName());
service.setTags(tags);
CategoryDefinition category = new CategoryDefinition();