Change dependency version for commons-codec and spring-core 01/102001/1
authorjitendra sharma <jitendra.sharma1@huawei.com>
Wed, 19 Feb 2020 14:55:49 +0000 (14:55 +0000)
committerjitendra sharma <jitendra.sharma1@huawei.com>
Wed, 19 Feb 2020 14:57:23 +0000 (14:57 +0000)
Issue-ID: CLI-246

Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com>
Change-Id: Ia0a07a417f64733e859ea7f1be6488b95d42cb52

framework/pom.xml
framework/src/test/java/org/onap/cli/fw/utils/OnapCommandUtilsTest.java

index 75d94ee..7666c49 100644 (file)
             <artifactId>commons-csv</artifactId>
             <version>1.3</version>
         </dependency>
+<!-- Change version from 1.9 to 1.13 due to "sonatype-2012-
+       0050" for commons-codec -->
         <dependency>
             <groupId>commons-codec</groupId>
             <artifactId>commons-codec</artifactId>
-            <version>1.9</version>
+            <version>1.13</version>
         </dependency>
         <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-io</artifactId>
             <version>1.3.2</version>
         </dependency>
+<!-- Change version from 3.2.9 to 5.1.2 due to "sonatype-2015-
+       0327" for spring-core -->
         <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-core</artifactId>
-            <version>3.2.9.RELEASE</version>
+            <version>5.1.2.RELEASE</version>
         </dependency>
         <dependency>
             <groupId>com.jayway.jsonpath</groupId>
index df94d59..e40dfdf 100644 (file)
@@ -59,6 +59,7 @@ import static java.util.Collections.singletonList;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
+import static org.junit.Assert.assertNotNull;
 import static org.onap.cli.fw.conf.OnapCommandConstants.IS_INCLUDE;
 import static org.onap.cli.fw.input.OnapCommandParameterType.ARRAY;
 import static org.onap.cli.fw.input.OnapCommandParameterType.BOOL;
@@ -513,4 +514,9 @@ public class OnapCommandUtilsTest {
             }
         };
     }
+
+   @Test
+   public void testMd5(){
+       assertNotNull(OnapCommandUtils.md5("a"));
+    }
 }