Upgrade Junit to version 5.6 61/104161/14
authorBaumel, Dvir (db384r) <dvir.baumel@intl.att.com>
Mon, 23 Mar 2020 14:21:05 +0000 (16:21 +0200)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Thu, 16 Apr 2020 08:50:35 +0000 (08:50 +0000)
Issue-ID: SDC-2844
Change-Id: I4716bf7920f9bb79c450ebfd48e9d4fba54fdfdd
Signed-off-by: Baumel, Dvir (db384r) <dvir.baumel@intl.att.com>
25 files changed:
asdctool/pom.xml
asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/TopologyTemplateValidatorExecuterTest.java
asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/VFToscaArtifactValidatorExecutorTest.java
catalog-be/pom.xml
catalog-be/src/test/java/org/openecomp/sdc/be/components/merge/input/ComponentInputsMergeBLTest.java
catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/EcompIntImplTest.java
catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/converters/EcompRoleConverterTest.java
catalog-dao/pom.xml
catalog-model/pom.xml
common-app-api/pom.xml
common-app-logging/pom.xml
common-be/pom.xml
common/onap-generic-artifact-browser/onap-generic-artifact-browser-service/pom.xml
onboarding/pom.xml
openecomp-be/api/openecomp-sdc-rest-webapp/item-permissions-rest/item-permissions-rest-types/pom.xml
openecomp-be/api/openecomp-sdc-rest-webapp/item-rest/item-rest-types/pom.xml
openecomp-be/api/openecomp-sdc-rest-webapp/notifications-rest/notifications-rest-types/pom.xml
openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/pom.xml
openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/ComponentManagerFactoryTest.java
openecomp-be/pom.xml
pom.xml
test-apis-ci/pom.xml
ui-ci/pom.xml
utils/DmaapPublisher/pom.xml
utils/webseal-simulator/pom.xml

index 015522b..dac5063 100644 (file)
       <scope>test</scope>
     </dependency>
 
+    <dependency>
+      <groupId>org.junit.jupiter</groupId>
+      <artifactId>junit-jupiter</artifactId>
+      <version>${junitJupiter.version}</version>
+      <scope>test</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.mockito</groupId>
+      <artifactId>mockito-junit-jupiter</artifactId>
+      <version>${mockitoJupiter.version}</version>
+      <scope>test</scope>
+    </dependency>
+
     <dependency>
       <groupId>org.testng</groupId>
       <artifactId>testng</artifactId>
index 6e3c15d..d74aaa4 100644 (file)
@@ -20,7 +20,8 @@
 
 package org.openecomp.sdc.asdctool.impl.validator.executers;
 
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
 import org.openecomp.sdc.be.dao.jsongraph.JanusGraphDao;
 import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
 
@@ -53,12 +54,12 @@ public class TopologyTemplateValidatorExecuterTest {
                result = testSubject.getName();
        }
 
-       @Test(expected=NullPointerException.class)
-       public void testGetVerticesToValidate() throws Exception {
+       @Test
+       public void testGetVerticesToValidate() {
                TopologyTemplateValidatorExecuter testSubject;
 
                // default test
                testSubject = createTestSubject();
-               testSubject.getVerticesToValidate(ComponentTypeEnum.PRODUCT);
+               Assertions.assertThrows(NullPointerException.class, () -> testSubject.getVerticesToValidate(ComponentTypeEnum.PRODUCT));
        }
 }
index bf94363..c8edb7d 100644 (file)
@@ -20,7 +20,8 @@
 
 package org.openecomp.sdc.asdctool.impl.validator.executers;
 
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
 import org.openecomp.sdc.be.dao.jsongraph.JanusGraphDao;
 import org.openecomp.sdc.be.model.jsonjanusgraph.operations.ToscaOperationFacade;
 
@@ -35,14 +36,14 @@ public class VFToscaArtifactValidatorExecutorTest {
                return new VFToscaArtifactValidatorExecutor(janusGraphDaoMock, toscaOperationFacade);
        }
 
-       @Test(expected=NullPointerException.class)
-       public void testExecuteValidations() throws Exception {
+       @Test
+       public void testExecuteValidations() {
                VFToscaArtifactValidatorExecutor testSubject;
                boolean result;
 
                // default test
                testSubject = createTestSubject();
-               result = testSubject.executeValidations();
+               Assertions.assertThrows(NullPointerException.class, () -> testSubject.executeValidations());
        }
 
        @Test
index 66e9dc0..27d5d6d 100644 (file)
             <scope>test</scope>
         </dependency>
 
+        <dependency>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter</artifactId>
+            <version>${junitJupiter.version}</version>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.mockito</groupId>
+            <artifactId>mockito-junit-jupiter</artifactId>
+            <version>${mockitoJupiter.version}</version>
+            <scope>test</scope>
+        </dependency>
+
         <dependency>
             <groupId>org.mockito</groupId>
             <artifactId>mockito-core</artifactId>
index 954e609..9868e66 100644 (file)
@@ -7,9 +7,9 @@
  * 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.
@@ -23,6 +23,7 @@ package org.openecomp.sdc.be.components.merge.input;
 import fj.data.Either;
 import org.junit.Before;
 import org.junit.Test;
+import org.junit.jupiter.api.DisplayName;
 import org.mockito.Mockito;
 import org.openecomp.sdc.be.auditing.impl.AuditingManager;
 import org.openecomp.sdc.be.components.utils.ObjectGenerator;
@@ -60,6 +61,7 @@ public class ComponentInputsMergeBLTest extends BaseComponentInputsMerge {
     }
 
     @Test
+    @DisplayName("When old component has no inputs then return ok")
     public void whenOldComponentHasNoInputs_returnOk() {
         ActionStatus actionStatus = testInstance.mergeComponents(new Resource(), new Resource());
         assertThat(actionStatus).isEqualTo(ActionStatus.OK);
@@ -67,6 +69,7 @@ public class ComponentInputsMergeBLTest extends BaseComponentInputsMerge {
     }
 
     @Test
+    @DisplayName("When current resource has no properties no redeclaration of inputs required")
     public void whenCurrResourceHasNoProperties_noRedeclarationOFInputsRequired() {
         Resource newResource = new ResourceBuilder().setUniqueId(RESOURCE_ID).build();
         when(toscaOperationFacade.updateInputsToComponent(emptyList(), RESOURCE_ID)).thenReturn(Either.left(null));
@@ -77,6 +80,7 @@ public class ComponentInputsMergeBLTest extends BaseComponentInputsMerge {
     }
 
     @Test
+    @DisplayName("When current resource has no inputs no merge required, update resource with inputs declared in previous version")
     public void whenCurrResourceHasNoInputs_noMergeRequired_updateResourceWithInputsDeclaredInPrevVersion() {
         List<InputDefinition> prevDeclaredInputs = ObjectGenerator.buildInputs("declared1", "declared2");
         currResource.setInputs(null);
@@ -90,6 +94,7 @@ public class ComponentInputsMergeBLTest extends BaseComponentInputsMerge {
     }
 
     @Test
+    @DisplayName("Find inputs declared from properties and merge them into new component")
     public void findInputsDeclaredFromPropertiesAndMergeThemIntoNewComponent() {
         List<InputDefinition> prevDeclaredInputs = ObjectGenerator.buildInputs("declared1", "declared2");
         List<InputDefinition> currInputsPreMerge = new ArrayList<>(currResource.getInputs());
@@ -104,6 +109,7 @@ public class ComponentInputsMergeBLTest extends BaseComponentInputsMerge {
     }
 
     @Test
+    @DisplayName("Identify already existing inputs and don't merge them into new component")
     public void identifyAlreadyExistingInputsAndDontMergeThemIntoNewComponent() {
         List<InputDefinition> prevDeclaredInputs = ObjectGenerator.buildInputs("declared1", "declared2", "input1");
         List<InputDefinition> prevDeclaredInputsNotPresentInCurrent = ObjectGenerator.buildInputs("declared1", "declared2");
@@ -121,6 +127,7 @@ public class ComponentInputsMergeBLTest extends BaseComponentInputsMerge {
 
 
     @Test
+    @DisplayName("When failing to update inputs propagate the error")
     public void whenFailingToUpdateInputs_propagateTheError() {
         Resource newResource = new ResourceBuilder().setUniqueId(RESOURCE_ID).build();
         when(toscaOperationFacade.updateInputsToComponent(emptyList(), RESOURCE_ID)).thenReturn(Either.right(StorageOperationStatus.GENERAL_ERROR));
index 8db8450..778552d 100644 (file)
@@ -23,7 +23,8 @@ package org.openecomp.sdc.be.ecomp;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.mockito.Mockito.when;
 
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
 import org.mockito.Mockito;
 import org.onap.portalsdk.core.onboarding.exception.PortalAPIException;
 import org.onap.portalsdk.core.restful.domain.EcompRole;
@@ -40,69 +41,75 @@ public class EcompIntImplTest {
                return new EcompIntImpl();
        }
 
-       @Test(expected=PortalAPIException.class)
-       public void testPushUser() throws Exception {
+       @Test
+       public void testPushUser()  {
                EcompIntImpl testSubject;
                EcompUser user = null;
 
                // default test
                testSubject = createTestSubject();
-               testSubject.pushUser(user);
+               Assertions.assertThrows(PortalAPIException.class, () -> {
+                       testSubject.pushUser(user);
+               });
        }
 
-       @Test(expected=PortalAPIException.class)
-       public void testEditUser() throws Exception {
+       @Test
+       public void testEditUser() {
                EcompIntImpl testSubject;
                String loginId = "";
                EcompUser user = null;
 
                // default test
                testSubject = createTestSubject();
-               testSubject.editUser(loginId, user);
+               Assertions.assertThrows(PortalAPIException.class, () -> {
+                       testSubject.editUser(loginId, user);
+               });
        }
 
-       @Test(expected=PortalAPIException.class)
-       public void testGetUser() throws Exception {
+       @Test
+       public void testGetUser() {
                EcompIntImpl testSubject;
                String loginId = "";
-               EcompUser result;
 
                // default test
                testSubject = createTestSubject();
-               result = testSubject.getUser(loginId);
+               Assertions.assertThrows(PortalAPIException.class, () -> {
+                       EcompUser result = testSubject.getUser(loginId);
+               });
        }
 
-       @Test(expected=PortalAPIException.class)
-       public void testGetUsers() throws Exception {
+       @Test
+       public void testGetUsers() {
                EcompIntImpl testSubject;
-               List<EcompUser> result;
 
                // default test
                testSubject = createTestSubject();
-               result = testSubject.getUsers();
+               Assertions.assertThrows(PortalAPIException.class, () -> {
+                       List<EcompUser> result = testSubject.getUsers();
+               });
+
        }
 
        @Test
-       public void testGetAvailableRoles() throws Exception {
+       public void testGetAvailableRoles() throws PortalAPIException{
                EcompIntImpl testSubject;
-               List<EcompRole> result;
 
                // default test
                testSubject = createTestSubject();
-        result = testSubject.getAvailableRoles("mock-id");
-        assertThat(result).hasSameSizeAs(Role.values());
+               List<EcompRole> result = testSubject.getAvailableRoles("mock-id");
+               assertThat(result).hasSameSizeAs(Role.values());
        }
 
-
-    @Test(expected= PortalAPIException.class)
-       public void testGetUserRoles() throws Exception {
+       @Test
+       public void testGetUserRoles()  {
                EcompIntImpl testSubject;
                String loginId = "";
-               List<EcompRole> result;
 
                // default test
                testSubject = createTestSubject();
-               result = testSubject.getUserRoles(loginId);
+               Assertions.assertThrows(PortalAPIException.class, () -> {
+                       List<EcompRole> result = testSubject.getUserRoles(loginId);
+               });
        }
 
        @Test
index bbe0c17..68e23ce 100644 (file)
@@ -22,7 +22,8 @@ package org.openecomp.sdc.be.ecomp.converters;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
 import org.onap.portalsdk.core.onboarding.exception.PortalAPIException;
 import org.onap.portalsdk.core.restful.domain.EcompRole;
 import org.openecomp.sdc.be.user.Role;
@@ -42,10 +43,10 @@ public class EcompRoleConverterTest {
                }
        }
 
-       @Test(expected = PortalAPIException.class)
-       public void testConvertEcompRoleToRoleFailure() throws PortalAPIException {
+       @Test
+       public void testConvertEcompRoleToRoleFailure()  {
                EcompRole ecompRole = new EcompRole();
                ecompRole.setName("mock-name");
-               EcompRoleConverter.convertEcompRoleToRole(ecompRole);
+               Assertions.assertThrows(PortalAPIException.class, () -> EcompRoleConverter.convertEcompRoleToRole(ecompRole));
        }
 }
index 1fa1c65..f89e5f7 100644 (file)
@@ -216,6 +216,20 @@ Modifications copyright (c) 2018 Nokia
                        <scope>test</scope>
                </dependency>
 
+               <dependency>
+                       <groupId>org.junit.jupiter</groupId>
+                       <artifactId>junit-jupiter</artifactId>
+                       <version>${junitJupiter.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.mockito</groupId>
+                       <artifactId>mockito-junit-jupiter</artifactId>
+                       <version>${mockitoJupiter.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
                <dependency>
                        <groupId>org.apache.commons</groupId>
                        <artifactId>commons-jci-core</artifactId>
index 46b79cf..2b70c4d 100644 (file)
                        <scope>test</scope>
                </dependency>
 
+               <dependency>
+                       <groupId>org.junit.jupiter</groupId>
+                       <artifactId>junit-jupiter</artifactId>
+                       <version>${junitJupiter.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.mockito</groupId>
+                       <artifactId>mockito-junit-jupiter</artifactId>
+                       <version>${mockitoJupiter.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
                <dependency>
                        <groupId>org.mockito</groupId>
                        <artifactId>mockito-core</artifactId>
index 8a9dc1e..10519f9 100644 (file)
                        <scope>test</scope>
                </dependency>
 
+               <dependency>
+                       <groupId>org.junit.jupiter</groupId>
+                       <artifactId>junit-jupiter</artifactId>
+                       <version>${junitJupiter.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.mockito</groupId>
+                       <artifactId>mockito-junit-jupiter</artifactId>
+                       <version>${mockitoJupiter.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
                <dependency>
                        <groupId>org.mockito</groupId>
                        <artifactId>mockito-core</artifactId>
index 3527c1b..a46ba1c 100644 (file)
             <artifactId>logging-filter-base</artifactId>
             <version>${onap.logging.version}</version>
         </dependency>
+        <dependency>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter</artifactId>
+            <version>${junitJupiter.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.mockito</groupId>
+            <artifactId>mockito-junit-jupiter</artifactId>
+            <version>${mockitoJupiter.version}</version>
+            <scope>test</scope>
+        </dependency>
+
         <dependency>
             <groupId>org.projectlombok</groupId>
             <artifactId>lombok</artifactId>
index 50de3e9..1b3b8e1 100644 (file)
       <version>${junit.version}</version>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>org.junit.jupiter</groupId>
+      <artifactId>junit-jupiter</artifactId>
+      <version>${junitJupiter.version}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.mockito</groupId>
+      <artifactId>mockito-junit-jupiter</artifactId>
+      <version>${mockitoJupiter.version}</version>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>org.mockito</groupId>
       <artifactId>mockito-core</artifactId>
index 81555a0..b3665dc 100644 (file)
       <version>${hamcrest-all.version}</version>
       <scope>test</scope>
     </dependency>
+
     <dependency>
       <groupId>org.junit.jupiter</groupId>
       <artifactId>junit-jupiter</artifactId>
-      <version>${junit-jupiter.version}</version>
+      <version>${junitJupiter.version}</version>
+      <scope>test</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.mockito</groupId>
+      <artifactId>mockito-junit-jupiter</artifactId>
+      <version>${mockitoJupiter.version}</version>
       <scope>test</scope>
     </dependency>
   </dependencies>
index dda15ea..3275321 100644 (file)
                 <version>${junit.version}</version>
                 <scope>test</scope>
             </dependency>
+            <dependency>
+                <groupId>org.junit.jupiter</groupId>
+                <artifactId>junit-jupiter</artifactId>
+                <version>${junitJupiter.version}</version>
+                <scope>test</scope>
+            </dependency>
+            <dependency>
+                <groupId>org.mockito</groupId>
+                <artifactId>mockito-junit-jupiter</artifactId>
+                <version>${mockitoJupiter.version}</version>
+                <scope>test</scope>
+            </dependency>
             <dependency>
                 <groupId>org.mockito</groupId>
                 <artifactId>mockito-all</artifactId>
index 798846e..7f53dae 100644 (file)
@@ -9,13 +9,6 @@
             <artifactId>swagger-annotations</artifactId>
             <version>${swagger.version}</version>
         </dependency>
-        <dependency>
-            <groupId>org.junit.jupiter</groupId>
-            <artifactId>junit-jupiter-api</artifactId>
-            <version>5.3.1</version>
-            <scope>test</scope>
-        </dependency>
-
     </dependencies>
 
     <parent>
index e385c4b..7b9692f 100644 (file)
             <artifactId>openecomp-sdc-conflict-manager</artifactId>
             <version>${project.version}</version>
         </dependency>
-        <dependency>
-            <groupId>org.junit.jupiter</groupId>
-            <artifactId>junit-jupiter-api</artifactId>
-            <version>5.3.1</version>
-            <scope>test</scope>
-        </dependency>
     </dependencies>
 
 
index 952ba4f..1be303c 100644 (file)
@@ -9,12 +9,6 @@
             <artifactId>openecomp-sdc-datatypes-lib</artifactId>
             <version>${project.version}</version>
         </dependency>
-        <dependency>
-            <groupId>org.junit.jupiter</groupId>
-            <artifactId>junit-jupiter-api</artifactId>
-            <version>5.3.1</version>
-            <scope>test</scope>
-        </dependency>
     </dependencies>
 
     <parent>
index f8c548b..0857e1d 100644 (file)
             <type>test-jar</type>
             <scope>test</scope>
         </dependency>
+
+        <dependency>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter</artifactId>
+            <version>${junitJupiter.version}</version>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.mockito</groupId>
+            <artifactId>mockito-junit-jupiter</artifactId>
+            <version>${mockitoJupiter.version}</version>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
     <properties>
index 7c99ba5..79bef95 100644 (file)
             <version>${togglz.version}</version>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter</artifactId>
+            <version>${junitJupiter.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.mockito</groupId>
+            <artifactId>mockito-junit-jupiter</artifactId>
+            <version>${mockitoJupiter.version}</version>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
     <build>
diff --git a/pom.xml b/pom.xml
index 81e917b..fb54ec1 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -113,8 +113,10 @@ Modifications copyright (c) 2018-2019 Nokia
 
     <!--TESTING-->
     <mockito.version>2.18.3</mockito.version>
+    <mockitoJupiter.version>3.3.3</mockitoJupiter.version>
     <jmockit.version>1.33</jmockit.version>
     <junit.version>4.12</junit.version>
+    <junitJupiter.version>5.6.0</junitJupiter.version>
     <assertj.version>3.10.0</assertj.version>
     <testng.version>6.14.3</testng.version>
     <extentreports.version>3.0.3</extentreports.version>
@@ -122,9 +124,6 @@ Modifications copyright (c) 2018-2019 Nokia
     <bean-matchers.version>0.11</bean-matchers.version>
     <hamcrest.version>2.1</hamcrest.version>
     <hamcrest-all.version>1.3</hamcrest-all.version>
-    <junit-jupiter.version>5.4.0</junit-jupiter.version>
-    <junit-vintage.version>5.4.0</junit-vintage.version>
-    <junit-platform.version>1.1.0</junit-platform.version>
     <maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
     <maven-jar-plugin.version>2.4</maven-jar-plugin.version>
 
@@ -245,21 +244,6 @@ Modifications copyright (c) 2018-2019 Nokia
         <artifactId>netty-handler</artifactId>
         <version>${netty.version}</version>
       </dependency>
-      <dependency>
-        <groupId>org.junit.platform</groupId>
-        <artifactId>junit-platform-launcher</artifactId>
-        <version>${junit-platform.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.junit.jupiter</groupId>
-        <artifactId>junit-jupiter-engine</artifactId>
-        <version>${junit-jupiter.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.junit.vintage</groupId>
-        <artifactId>junit-vintage-engine</artifactId>
-        <version>${junit-vintage.version}</version>
-      </dependency>
     </dependencies>
   </dependencyManagement>
 
@@ -306,6 +290,9 @@ Modifications copyright (c) 2018-2019 Nokia
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-assembly-plugin</artifactId>
           <version>3.1.0</version>
+          <configuration>
+            <tarLongFileMode>posix</tarLongFileMode>
+          </configuration>
         </plugin>
 
         <plugin>
index 5cd8bae..456aeae 100644 (file)
       <scope>compile</scope>
     </dependency>
 
+      <dependency>
+          <groupId>org.junit.jupiter</groupId>
+          <artifactId>junit-jupiter</artifactId>
+          <version>${junitJupiter.version}</version>
+          <scope>test</scope>
+      </dependency>
+
+      <dependency>
+          <groupId>org.mockito</groupId>
+          <artifactId>mockito-junit-jupiter</artifactId>
+          <version>${mockitoJupiter.version}</version>
+          <scope>test</scope>
+      </dependency>
+
     <dependency>
       <groupId>org.assertj</groupId>
       <artifactId>assertj-core</artifactId>
index 4680023..0768f6b 100644 (file)
                        <scope>compile</scope>
                </dependency>
 
+               <dependency>
+                       <groupId>org.junit.jupiter</groupId>
+                       <artifactId>junit-jupiter</artifactId>
+                       <version>${junitJupiter.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.mockito</groupId>
+                       <artifactId>mockito-junit-jupiter</artifactId>
+                       <version>${mockitoJupiter.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
                <dependency>
                        <groupId>org.testng</groupId>
                        <artifactId>testng</artifactId>
index 6152fdf..5437f4e 100644 (file)
                        <version>4.12</version>
                        <scope>test</scope>
                </dependency>
+               <dependency>
+                       <groupId>org.junit.jupiter</groupId>
+                       <artifactId>junit-jupiter</artifactId>
+                       <version>${junitJupiter.version}</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.mockito</groupId>
+                       <artifactId>mockito-junit-jupiter</artifactId>
+                       <version>${mockitoJupiter.version}</version>
+                       <scope>test</scope>
+               </dependency>
                <dependency>
                        <groupId>org.mockito</groupId>
                        <artifactId>mockito-core</artifactId>
index ed38278..214671c 100644 (file)
                        <scope>test</scope>
                </dependency>
 
+               <dependency>
+                       <groupId>org.junit.jupiter</groupId>
+                       <artifactId>junit-jupiter</artifactId>
+                       <version>${junitJupiter.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.mockito</groupId>
+                       <artifactId>mockito-junit-jupiter</artifactId>
+                       <version>${mockitoJupiter.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
                <dependency>
                        <groupId>javax.servlet</groupId>
                        <artifactId>servlet-api</artifactId>