From f72d59b269c721a13e51f572a10324ce0add186f Mon Sep 17 00:00:00 2001 From: "andre.schmid" Date: Thu, 25 Feb 2021 18:00:48 +0000 Subject: Update guava version Change-Id: I5b233162a180a29d9c7ba79fb0fa480f8f0e0da9 Issue-ID: SDC-3491 Signed-off-by: andre.schmid --- .../nsd/generator/NsDescriptorGeneratorImplTest.java | 15 ++++++++++----- .../openecomp/sdc/common/util/ValidationUtils.java | 2 +- integration-tests/pom.xml | 20 ++++++++++---------- pom.xml | 2 +- utils/DmaapPublisher/pom.xml | 2 +- 5 files changed, 23 insertions(+), 18 deletions(-) diff --git a/catalog-be-plugins/etsi-nfv-nsd-csar-plugin/src/test/java/org/openecomp/sdc/be/plugins/etsi/nfv/nsd/generator/NsDescriptorGeneratorImplTest.java b/catalog-be-plugins/etsi-nfv-nsd-csar-plugin/src/test/java/org/openecomp/sdc/be/plugins/etsi/nfv/nsd/generator/NsDescriptorGeneratorImplTest.java index 19cfefaba3..36651493d8 100644 --- a/catalog-be-plugins/etsi-nfv-nsd-csar-plugin/src/test/java/org/openecomp/sdc/be/plugins/etsi/nfv/nsd/generator/NsDescriptorGeneratorImplTest.java +++ b/catalog-be-plugins/etsi-nfv-nsd-csar-plugin/src/test/java/org/openecomp/sdc/be/plugins/etsi/nfv/nsd/generator/NsDescriptorGeneratorImplTest.java @@ -129,10 +129,12 @@ class NsDescriptorGeneratorImplTest { final HashMap nodeTemplateMap = new HashMap<>(); final ToscaNodeTemplate vnfAmfNodeTemplate = new ToscaNodeTemplate(); vnfAmfNodeTemplate.setType("com.ericsson.resource.abstract.Ericsson.AMF"); + final Map propertyMap = new HashMap<>(); //a property to be excluded - vnfAmfNodeTemplate.setProperties(ImmutableMap.of("nf_naming_code", new ToscaProperty())); + propertyMap.put("nf_naming_code", new ToscaProperty()); //a property that wont be excluded - vnfAmfNodeTemplate.setProperties(ImmutableMap.of("will_not_be_excluded", new ToscaProperty())); + propertyMap.put("will_not_be_excluded", new ToscaProperty()); + vnfAmfNodeTemplate.setProperties(propertyMap); nodeTemplateMap.put(VNFD_AMF_NODE_NAME, vnfAmfNodeTemplate); final Map vnfAmfCapabilities = new HashMap<>(); vnfAmfCapabilities.put("myCapability", new ToscaTemplateCapability()); @@ -196,9 +198,12 @@ class NsDescriptorGeneratorImplTest { private ToscaNodeType createDefaultInterfaceToscaNodeType(final String designerPropertyValue, final String versionPropertyValue, final String namePropertyValue, final String invariantIdPropertyValue) { final ToscaNodeType interfaceToscaNodeType = new ToscaNodeType(); - interfaceToscaNodeType.setProperties(ImmutableMap - .of("designer", createToscaProperty(designerPropertyValue), "version", createToscaProperty(versionPropertyValue), "name", - createToscaProperty(namePropertyValue), "invariant_id", createToscaProperty(invariantIdPropertyValue))); + final Map propertyMap = new HashMap<>(); + propertyMap.put("designer", createToscaProperty(designerPropertyValue)); + propertyMap.put("version", createToscaProperty(versionPropertyValue)); + propertyMap.put("name", createToscaProperty(namePropertyValue)); + propertyMap.put("invariant_id", createToscaProperty(invariantIdPropertyValue)); + interfaceToscaNodeType.setProperties(propertyMap); return interfaceToscaNodeType; } diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/util/ValidationUtils.java b/common-app-api/src/main/java/org/openecomp/sdc/common/util/ValidationUtils.java index fbc5e9de95..375f041e81 100644 --- a/common-app-api/src/main/java/org/openecomp/sdc/common/util/ValidationUtils.java +++ b/common-app-api/src/main/java/org/openecomp/sdc/common/util/ValidationUtils.java @@ -331,7 +331,7 @@ public class ValidationUtils { public static boolean validateIsAscii(String input) { - return CharMatcher.ASCII.matchesAllOf(input); + return CharMatcher.ascii().matchesAllOf(input); } public static String convertHtmlTagsToEntities(String input) { diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml index 6d87dd937e..449a86bc51 100644 --- a/integration-tests/pom.xml +++ b/integration-tests/pom.xml @@ -70,16 +70,22 @@ limitations under the License. test - com.google.guava - guava - 25.0-jre - compile + org.hamcrest + hamcrest + ${hamcrest.version} + test junit junit ${junit.version} test + + + org.hamcrest + hamcrest-core + + org.testng @@ -246,12 +252,6 @@ limitations under the License. 1.0.2 test - - org.hamcrest - hamcrest - ${hamcrest.version} - test - commons-net commons-net diff --git a/pom.xml b/pom.xml index b2f720ac1d..79bf444d4f 100644 --- a/pom.xml +++ b/pom.xml @@ -45,7 +45,7 @@ Modifications copyright (c) 2018-2019 Nokia 0.11 3.10 - 18.0 + 30.1-jre 0.3.1 5.2.10.RELEASE 2.27 diff --git a/utils/DmaapPublisher/pom.xml b/utils/DmaapPublisher/pom.xml index f0756c576c..6464af23b9 100644 --- a/utils/DmaapPublisher/pom.xml +++ b/utils/DmaapPublisher/pom.xml @@ -44,7 +44,7 @@ com.google.guava guava - 22.0 + ${guava.version} -- cgit 1.2.3-korg