Controller Blueprints Microservice 41/62241/4
authorBrinda Santh <brindasanth@in.ibm.com>
Fri, 24 Aug 2018 03:34:05 +0000 (23:34 -0400)
committerMuthuramalingam, Brinda Santh(bs2796) <bs2796@att.com>
Fri, 24 Aug 2018 19:53:56 +0000 (19:53 +0000)
Add Powermock compatable version in OpenJDK Ubuntu Machine for Spring boot 2 Junit testcase and clean maven dependencies

Change-Id: Icac038b0d68fdd0edbb1aac9bc2bccb77d627289
Issue-ID: CCSDK-483
Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
ms/blueprintsprocessor/application/pom.xml
ms/blueprintsprocessor/modules/commons/core/pom.xml
ms/blueprintsprocessor/modules/pom.xml
ms/blueprintsprocessor/parent/pom.xml
ms/controllerblueprints/application/pom.xml
ms/controllerblueprints/modules/core/pom.xml
ms/controllerblueprints/modules/resource-dict/pom.xml
ms/controllerblueprints/modules/service/pom.xml
ms/controllerblueprints/parent/pom.xml

index 1412eca..c7f15ea 100644 (file)
@@ -2,6 +2,8 @@
 <!--
   ~  Copyright © 2017-2018 AT&T Intellectual Property.
   ~
+  ~  Modifications Copyright © 2018 IBM.
+  ~
   ~  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
             <groupId>org.onap.ccsdk.apps.blueprintsprocessor</groupId>
             <artifactId>selfservice-api</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.powermock</groupId>
+            <artifactId>powermock-api-mockito2</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.jetbrains.kotlin</groupId>
+            <artifactId>kotlin-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>io.projectreactor</groupId>
+            <artifactId>reactor-test</artifactId>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
     <build>
index d020320..ad11580 100644 (file)
@@ -2,6 +2,8 @@
 <!--
   ~  Copyright © 2017-2018 AT&T Intellectual Property.
   ~
+  ~  Modifications Copyright © 2018 IBM.
+  ~
   ~  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
@@ -37,9 +39,5 @@
                        <groupId>org.onap.ccsdk.apps.blueprintsprocessor</groupId>
                        <artifactId>rest-lib</artifactId>
                </dependency>
-               <dependency>
-                       <groupId>org.onap.ccsdk.apps.controllerblueprints</groupId>
-                       <artifactId>resource-dict</artifactId>
-               </dependency>
        </dependencies>
 </project>
index c0c30e0..0ae3458 100644 (file)
@@ -2,6 +2,8 @@
 <!--
   ~  Copyright © 2017-2018 AT&T Intellectual Property.
   ~
+  ~  Modifications Copyright © 2018 IBM.
+  ~
   ~  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
 
     <dependencies>
         <dependency>
-            <groupId>org.jetbrains.kotlin</groupId>
-            <artifactId>kotlin-stdlib-jdk8</artifactId>
-            <version>${kotlin.version}</version>
+            <groupId>org.powermock</groupId>
+            <artifactId>powermock-api-mockito2</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.jetbrains.kotlin</groupId>
             <artifactId>kotlin-test</artifactId>
-            <version>${kotlin.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>io.projectreactor</groupId>
+            <artifactId>reactor-test</artifactId>
             <scope>test</scope>
         </dependency>
     </dependencies>
index 79039aa..ecd123d 100644 (file)
@@ -2,6 +2,8 @@
 <!--
   ~  Copyright © 2017-2018 AT&T Intellectual Property.
   ~
+  ~  Modifications Copyright © 2018 IBM.
+  ~
   ~  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
                 <version>${h2database.version}</version>
             </dependency>
             <!-- Test Dependency -->
+            <dependency>
+                <groupId>org.powermock</groupId>
+                <artifactId>powermock-api-mockito2</artifactId>
+                <version>1.7.4</version>
+                <scope>test</scope>
+            </dependency>
             <dependency>
                 <groupId>org.jetbrains.kotlin</groupId>
                 <artifactId>kotlin-test</artifactId>
         </dependencies>
     </dependencyManagement>
     <dependencies>
-        <dependency>
-            <groupId>org.apache.commons</groupId>
-            <artifactId>commons-lang3</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>commons-collections</groupId>
-            <artifactId>commons-collections</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>commons-io</groupId>
-            <artifactId>commons-io</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.velocity</groupId>
-            <artifactId>velocity</artifactId>
-        </dependency>
 
+        <!-- Application Component Dependency -->
         <dependency>
-            <groupId>io.springfox</groupId>
-            <artifactId>springfox-swagger2</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>io.springfox</groupId>
-            <artifactId>springfox-swagger-ui</artifactId>
-        </dependency>
-
-        <dependency>
-            <groupId>org.springframework.boot</groupId>
-            <artifactId>spring-boot-starter-test</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.jetbrains.kotlin</groupId>
-            <artifactId>kotlin-test</artifactId>
-            <version>${kotlin.version}</version>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>io.projectreactor</groupId>
-            <artifactId>reactor-test</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.jetbrains.kotlin</groupId>
-            <artifactId>kotlin-stdlib-jdk8</artifactId>
-            <version>${kotlin.version}</version>
+            <groupId>org.onap.ccsdk.apps.controllerblueprints</groupId>
+            <artifactId>resource-dict</artifactId>
         </dependency>
     </dependencies>
     <build>
index 4e781ad..38f81c1 100644 (file)
@@ -2,6 +2,8 @@
 <!--\r
   ~ Copyright © 2017-2018 AT&T Intellectual Property.\r
   ~\r
+  ~ Modifications Copyright © 2018 IBM.\r
+  ~\r
   ~ Licensed under the Apache License, Version 2.0 (the "License");\r
   ~ you may not use this file except in compliance with the License.\r
   ~ You may obtain a copy of the License at\r
             <artifactId>spring-boot-starter-actuator</artifactId>\r
         </dependency>\r
         <dependency>\r
-            <groupId>org.springframework.boot</groupId>\r
-            <artifactId>spring-boot-devtools</artifactId>\r
-            <optional>true</optional>\r
+            <groupId>org.powermock</groupId>\r
+            <artifactId>powermock-api-mockito2</artifactId>\r
+            <scope>test</scope>\r
         </dependency>\r
         <dependency>\r
             <groupId>org.springframework.boot</groupId>\r
             <artifactId>spring-boot-starter-test</artifactId>\r
             <scope>test</scope>\r
         </dependency>\r
+        <dependency>\r
+            <groupId>org.jetbrains.kotlin</groupId>\r
+            <artifactId>kotlin-test</artifactId>\r
+            <scope>test</scope>\r
+        </dependency>\r
+        <dependency>\r
+            <groupId>io.projectreactor</groupId>\r
+            <artifactId>reactor-test</artifactId>\r
+            <scope>test</scope>\r
+        </dependency>\r
     </dependencies>\r
     <build>\r
         <resources>\r
index 5782c60..51b3af3 100644 (file)
@@ -2,6 +2,8 @@
 <!--\r
   ~ Copyright © 2017-2018 AT&T Intellectual Property.\r
   ~\r
+  ~ Modifications Copyright © 2018 IBM.\r
+  ~\r
   ~ Licensed under the Apache License, Version 2.0 (the "License");\r
   ~ you may not use this file except in compliance with the License.\r
   ~ You may obtain a copy of the License at\r
             <groupId>org.yaml</groupId>\r
             <artifactId>snakeyaml</artifactId>\r
         </dependency>\r
+        <dependency>\r
+            <groupId>org.jetbrains.kotlin</groupId>\r
+            <artifactId>kotlin-test</artifactId>\r
+            <scope>test</scope>\r
+        </dependency>\r
+        <dependency>\r
+            <groupId>junit</groupId>\r
+            <artifactId>junit</artifactId>\r
+        </dependency>\r
     </dependencies>\r
 \r
 </project>\r
index 4f22618..dbc920f 100644 (file)
@@ -2,6 +2,8 @@
 <!--\r
   ~ Copyright © 2017-2018 AT&T Intellectual Property.\r
   ~\r
+  ~ Modifications Copyright © 2018 IBM.\r
+  ~\r
   ~ Licensed under the Apache License, Version 2.0 (the "License");\r
   ~ you may not use this file except in compliance with the License.\r
   ~ You may obtain a copy of the License at\r
             <groupId>org.onap.ccsdk.apps.controllerblueprints</groupId>\r
             <artifactId>core</artifactId>\r
         </dependency>\r
+        <dependency>\r
+            <groupId>org.jetbrains.kotlin</groupId>\r
+            <artifactId>kotlin-test</artifactId>\r
+            <scope>test</scope>\r
+        </dependency>\r
     </dependencies>\r
 \r
 \r
index 6a40a4a..9efadd1 100644 (file)
@@ -2,6 +2,8 @@
 <!--\r
   ~ Copyright © 2017-2018 AT&T Intellectual Property.\r
   ~\r
+  ~ Modifications Copyright © 2018 IBM.\r
+  ~\r
   ~ Licensed under the Apache License, Version 2.0 (the "License");\r
   ~ you may not use this file except in compliance with the License.\r
   ~ You may obtain a copy of the License at\r
         <!--<artifactId>mariadb-java-client</artifactId>-->\r
         <!--</dependency>-->\r
 \r
+        <dependency>\r
+            <groupId>org.powermock</groupId>\r
+            <artifactId>powermock-api-mockito2</artifactId>\r
+            <scope>test</scope>\r
+        </dependency>\r
         <dependency>\r
             <groupId>org.springframework.boot</groupId>\r
             <artifactId>spring-boot-starter-test</artifactId>\r
             <scope>test</scope>\r
         </dependency>\r
+        <dependency>\r
+            <groupId>org.jetbrains.kotlin</groupId>\r
+            <artifactId>kotlin-test</artifactId>\r
+            <scope>test</scope>\r
+        </dependency>\r
+        <dependency>\r
+            <groupId>io.projectreactor</groupId>\r
+            <artifactId>reactor-test</artifactId>\r
+            <scope>test</scope>\r
+        </dependency>\r
     </dependencies>\r
 </project>\r
 \r
index e48c113..19e55fe 100644 (file)
@@ -2,6 +2,8 @@
 <!--
   ~ Copyright © 2017-2018 AT&T Intellectual Property.
   ~
+  ~ Modifications Copyright © 2018 IBM.
+  ~
   ~ 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
                 <artifactId>h2</artifactId>
                 <version>${h2database.version}</version>
             </dependency>
-            <dependency>
-                <groupId>org.jetbrains.kotlin</groupId>
-                <artifactId>kotlin-test</artifactId>
-                <version>${kotlin.version}</version>
-                <scope>test</scope>
-            </dependency>
+
 
             <!-- Application Components -->
             <dependency>
                 <artifactId>resource-dict</artifactId>
                 <version>${project.version}</version>
             </dependency>
+
+            <!-- Testing Dependencies -->
+            <dependency>
+                <groupId>org.powermock</groupId>
+                <artifactId>powermock-api-mockito2</artifactId>
+                <version>1.7.4</version>
+                <scope>test</scope>
+            </dependency>
+            <dependency>
+                <groupId>org.jetbrains.kotlin</groupId>
+                <artifactId>kotlin-test</artifactId>
+                <version>${kotlin.version}</version>
+                <scope>test</scope>
+            </dependency>
         </dependencies>
     </dependencyManagement>
 
             <groupId>com.fasterxml.jackson.module</groupId>
             <artifactId>jackson-module-kotlin</artifactId>
         </dependency>
-        <!-- test -->
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.jetbrains.kotlin</groupId>
-            <artifactId>kotlin-test</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>io.projectreactor</groupId>
-            <artifactId>reactor-test</artifactId>
-            <scope>test</scope>
-        </dependency>
     </dependencies>
 
-
     <build>
         <plugins>
             <plugin>