Remove testNG dependencies (part 2) 05/118305/4
authorvasraz <vasyl.razinkov@est.tech>
Tue, 23 Feb 2021 17:43:55 +0000 (17:43 +0000)
committerChristophe Closset <christophe.closset@intl.att.com>
Thu, 25 Feb 2021 15:11:24 +0000 (15:11 +0000)
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: Ifdc4c01dfad76d6f4aafe9318c71c8a0009f1375
Issue-ID: SDC-3108

20 files changed:
asdctool/pom.xml
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/pom.xml
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/ChoiceOrOtherMappingTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapChoiceOrOtherDtoToChoiceOrOtherTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapChoiceOrOtherToChoiceOrOtherDtoTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapEntitlementPoolEntityToEntitlementPoolEntityDtoTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapEntitlementPoolRequestDtoToEntitlementPoolEntityTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapFeatureGroupDescriptorDtoToFeatureGroupEntityTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapFeatureGroupEntityToFeatureGroupDescriptorDtoTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapLicenseAgreementDescriptorDtoToLicenseAgreementEntityTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapLicenseAgreementEntityToLicenseAgreementDescriptorDtoTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDtoTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntityTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapLimitEntityToLimitCreationDtoTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapLimitEntityToLimitDtoTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapMultiChoiceOrOtherDtoToMultiChoiceOrOtherTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapMultiChoiceOrOtherToMultiChoiceOrOtherDtoTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapVendorLicenseModelEntityToDtoTest.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/src/test/java/org/openecomp/sdcrests/vendorlicense/rest/mapping/MapVendorLicenseModelRequestDtoToVendorLicenseModelEntityTest.java
openecomp-be/pom.xml

index f0227f2..de4c7a9 100644 (file)
       <scope>test</scope>
     </dependency>
 
-    <dependency>
-      <groupId>com.github.testng-team</groupId>
-      <artifactId>testng-junit5</artifactId>
-      <version>0.0.1</version>
-      <scope>test</scope>
-      <exclusions>
-        <exclusion>
-          <groupId>org.junit.platform</groupId>
-          <artifactId>junit-platform-engine</artifactId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-
     <dependency>
       <groupId>org.assertj</groupId>
       <artifactId>assertj-core</artifactId>
index 9cc0b04..522ffee 100644 (file)
       <artifactId>openecomp-sdc-item-permissions-manager</artifactId>
       <version>${project.version}</version>
     </dependency>
-    <dependency>
-      <groupId>org.testng</groupId>
-      <artifactId>testng</artifactId>
-      <version>${testng.version}</version>
-      <scope>test</scope>
-    </dependency>
 
     <!-- CXF -->
     <dependency>
index 6ad8c6f..c7901c8 100644 (file)
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
 
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import org.junit.jupiter.api.Test;
 import org.openecomp.sdc.vendorlicense.dao.types.ChoiceOrOther;
 import org.openecomp.sdcrests.vendorlicense.types.ChoiceOrOtherDto;
-import org.testng.annotations.Test;
 
 /**
  * Any change to ChoiceOrOther easily break reconstruction of objects of this type.
@@ -29,7 +30,7 @@ import org.testng.annotations.Test;
  * @author EVITALIY
  * @since 28 Dec 17
  */
-public class ChoiceOrOtherMappingTest {
+class ChoiceOrOtherMappingTest {
 
     private static final String UNKNOWN = "Unknown";
 
@@ -38,7 +39,7 @@ public class ChoiceOrOtherMappingTest {
     }
 
     @Test
-    public void testApplyMappingFromDto() {
+    void testApplyMappingFromDto() {
 
         ChoiceOrOtherDto<TestEnum> source = new ChoiceOrOtherDto<>();
         source.setChoice(TestEnum.Yes);
@@ -51,7 +52,7 @@ public class ChoiceOrOtherMappingTest {
     }
 
     @Test
-    public void testApplyMappingToDto() {
+    void testApplyMappingToDto() {
 
         ChoiceOrOther<TestEnum> source = new ChoiceOrOther<>(TestEnum.Yes, UNKNOWN);
 
index 1a1dae8..a83c74a 100644 (file)
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
 
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import org.junit.jupiter.api.Test;
 import org.openecomp.sdc.vendorlicense.dao.types.ChoiceOrOther;
 import org.openecomp.sdcrests.vendorlicense.types.ChoiceOrOtherDto;
-import org.testng.annotations.Test;
 
-public class MapChoiceOrOtherDtoToChoiceOrOtherTest {
+class MapChoiceOrOtherDtoToChoiceOrOtherTest {
 
     @Test
-    public void testChoice() {
+    void testChoice() {
         ChoiceOrOtherDto<TestEnum> source = new ChoiceOrOtherDto<>();
         ChoiceOrOther target = new ChoiceOrOther();
         MapChoiceOrOtherDtoToChoiceOrOther mapper = new MapChoiceOrOtherDtoToChoiceOrOther();
@@ -36,7 +37,7 @@ public class MapChoiceOrOtherDtoToChoiceOrOtherTest {
     }
 
     @Test
-    public void testOther() {
+    void testOther() {
         ChoiceOrOtherDto source = new ChoiceOrOtherDto();
         ChoiceOrOther target = new ChoiceOrOther();
         MapChoiceOrOtherDtoToChoiceOrOther mapper = new MapChoiceOrOtherDtoToChoiceOrOther();
index aff5237..309205e 100644 (file)
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
 
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+
+import org.junit.jupiter.api.Test;
 import org.openecomp.sdc.vendorlicense.dao.types.ChoiceOrOther;
 import org.openecomp.sdcrests.vendorlicense.types.ChoiceOrOtherDto;
-import org.testng.annotations.Test;
 
 
-public class MapChoiceOrOtherToChoiceOrOtherDtoTest {
+class MapChoiceOrOtherToChoiceOrOtherDtoTest {
 
     @Test
-    public void testOther() {
+    void testOther() {
         ChoiceOrOther source = new ChoiceOrOther();
         ChoiceOrOtherDto target = new ChoiceOrOtherDto();
         MapChoiceOrOtherToChoiceOrOtherDto mapper = new MapChoiceOrOtherToChoiceOrOtherDto();
@@ -38,7 +39,7 @@ public class MapChoiceOrOtherToChoiceOrOtherDtoTest {
     }
 
     @Test
-    public void testChoice() {
+    void testChoice() {
         ChoiceOrOther source = new ChoiceOrOther();
         ChoiceOrOtherDto target = new ChoiceOrOtherDto();
         MapChoiceOrOtherToChoiceOrOtherDto mapper = new MapChoiceOrOtherToChoiceOrOtherDto();
index 999b430..c8eb2a8 100644 (file)
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import java.util.Arrays;
 import java.util.Collections;
 import java.util.HashSet;
 import java.util.Set;
+import org.junit.jupiter.api.Test;
 import org.openecomp.sdc.vendorlicense.dao.types.EntitlementPoolEntity;
 import org.openecomp.sdc.vendorlicense.dao.types.EntitlementPoolType;
 import org.openecomp.sdc.vendorlicense.dao.types.MultiChoiceOrOther;
 import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
 import org.openecomp.sdcrests.vendorlicense.types.EntitlementPoolEntityDto;
-import org.testng.annotations.Test;
 
 
-public class MapEntitlementPoolEntityToEntitlementPoolEntityDtoTest {
+class MapEntitlementPoolEntityToEntitlementPoolEntityDtoTest {
 
     @Test
-    public void testReferencingFeatureGroups() {
+    void testReferencingFeatureGroups() {
         EntitlementPoolEntity source = new EntitlementPoolEntity();
         EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
         MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
@@ -45,7 +46,7 @@ public class MapEntitlementPoolEntityToEntitlementPoolEntityDtoTest {
     }
 
     @Test
-    public void testDescription() {
+    void testDescription() {
         EntitlementPoolEntity source = new EntitlementPoolEntity();
         EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
         MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
@@ -57,7 +58,7 @@ public class MapEntitlementPoolEntityToEntitlementPoolEntityDtoTest {
     }
 
     @Test
-    public void testIncrements() {
+    void testIncrements() {
         EntitlementPoolEntity source = new EntitlementPoolEntity();
         EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
         MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
@@ -69,7 +70,7 @@ public class MapEntitlementPoolEntityToEntitlementPoolEntityDtoTest {
     }
 
     @Test
-    public void testExpiryDate() {
+    void testExpiryDate() {
         EntitlementPoolEntity source = new EntitlementPoolEntity();
         EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
         MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
@@ -81,7 +82,7 @@ public class MapEntitlementPoolEntityToEntitlementPoolEntityDtoTest {
     }
 
     @Test
-    public void testId() {
+    void testId() {
         EntitlementPoolEntity source = new EntitlementPoolEntity();
         EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
         MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
@@ -93,7 +94,7 @@ public class MapEntitlementPoolEntityToEntitlementPoolEntityDtoTest {
     }
 
     @Test
-    public void testThresholdValue() {
+    void testThresholdValue() {
         EntitlementPoolEntity source = new EntitlementPoolEntity();
         EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
         MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
@@ -105,7 +106,7 @@ public class MapEntitlementPoolEntityToEntitlementPoolEntityDtoTest {
     }
 
     @Test
-    public void testName() {
+    void testName() {
         EntitlementPoolEntity source = new EntitlementPoolEntity();
         EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
         MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
@@ -119,7 +120,7 @@ public class MapEntitlementPoolEntityToEntitlementPoolEntityDtoTest {
     }
 
     @Test
-    public void testOperationalScope() {
+    void testOperationalScope() {
         EntitlementPoolEntity source = new EntitlementPoolEntity();
         EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
         MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
@@ -132,7 +133,7 @@ public class MapEntitlementPoolEntityToEntitlementPoolEntityDtoTest {
     }
 
     @Test
-    public void testStartDate() {
+    void testStartDate() {
         EntitlementPoolEntity source = new EntitlementPoolEntity();
         EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
         MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
@@ -144,7 +145,7 @@ public class MapEntitlementPoolEntityToEntitlementPoolEntityDtoTest {
     }
 
     @Test
-    public void testManufacturerReferenceNumber() {
+    void testManufacturerReferenceNumber() {
         EntitlementPoolEntity source = new EntitlementPoolEntity();
         EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
         MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper = new
@@ -157,7 +158,7 @@ public class MapEntitlementPoolEntityToEntitlementPoolEntityDtoTest {
     }
 
     @Test
-    public void testType() {
+    void testType() {
         EntitlementPoolEntity source = new EntitlementPoolEntity();
         EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
         MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
index 0c28cee..f52bda8 100644 (file)
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import java.util.Collections;
 import java.util.HashSet;
+import org.junit.jupiter.api.Test;
 import org.openecomp.sdc.vendorlicense.dao.types.EntitlementPoolEntity;
 import org.openecomp.sdc.vendorlicense.dao.types.EntitlementPoolType;
 import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
 import org.openecomp.sdcrests.vendorlicense.types.EntitlementPoolRequestDto;
 import org.openecomp.sdcrests.vendorlicense.types.MultiChoiceOrOtherDto;
-import org.testng.annotations.Test;
 
 
-public class MapEntitlementPoolRequestDtoToEntitlementPoolEntityTest {
+class MapEntitlementPoolRequestDtoToEntitlementPoolEntityTest {
 
     @Test
-    public void testExpiryDate() {
+    void testExpiryDate() {
         EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
         EntitlementPoolEntity target = new EntitlementPoolEntity();
         MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper =
@@ -43,7 +44,7 @@ public class MapEntitlementPoolRequestDtoToEntitlementPoolEntityTest {
     }
 
     @Test
-    public void testName() {
+    void testName() {
         EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
         EntitlementPoolEntity target = new EntitlementPoolEntity();
         MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper =
@@ -55,7 +56,7 @@ public class MapEntitlementPoolRequestDtoToEntitlementPoolEntityTest {
     }
 
     @Test
-    public void testDescription() {
+    void testDescription() {
         EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
         EntitlementPoolEntity target = new EntitlementPoolEntity();
         MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper =
@@ -67,7 +68,7 @@ public class MapEntitlementPoolRequestDtoToEntitlementPoolEntityTest {
     }
 
     @Test
-    public void testThresholdValue() {
+    void testThresholdValue() {
         EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
         EntitlementPoolEntity target = new EntitlementPoolEntity();
         MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper =
@@ -79,7 +80,7 @@ public class MapEntitlementPoolRequestDtoToEntitlementPoolEntityTest {
     }
 
     @Test
-    public void testIncrements() {
+    void testIncrements() {
         EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
         EntitlementPoolEntity target = new EntitlementPoolEntity();
         MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper =
@@ -91,7 +92,7 @@ public class MapEntitlementPoolRequestDtoToEntitlementPoolEntityTest {
     }
 
     @Test
-    public void testOperationalScope() {
+    void testOperationalScope() {
         EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
         EntitlementPoolEntity target = new EntitlementPoolEntity();
         MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper =
@@ -104,7 +105,7 @@ public class MapEntitlementPoolRequestDtoToEntitlementPoolEntityTest {
     }
 
     @Test
-    public void testStartDate() {
+    void testStartDate() {
         EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
         EntitlementPoolEntity target = new EntitlementPoolEntity();
         MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper =
@@ -116,7 +117,7 @@ public class MapEntitlementPoolRequestDtoToEntitlementPoolEntityTest {
     }
 
     @Test
-    public void testManufacturerReferenceNumber() {
+    void testManufacturerReferenceNumber() {
         EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
         EntitlementPoolEntity target = new EntitlementPoolEntity();
         MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper = new
@@ -128,7 +129,7 @@ public class MapEntitlementPoolRequestDtoToEntitlementPoolEntityTest {
     }
 
     @Test
-    public void testType() {
+    void testType() {
         EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
         EntitlementPoolEntity target = new EntitlementPoolEntity();
         MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper = new
@@ -139,7 +140,6 @@ public class MapEntitlementPoolRequestDtoToEntitlementPoolEntityTest {
         assertEquals(target.getType(), entitlementPoolType);
     }
 
-
     enum TestEnum {
         Yes
     }
index 035d367..92e2d11 100644 (file)
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
 
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import org.junit.jupiter.api.Test;
 import org.openecomp.sdc.vendorlicense.dao.types.FeatureGroupEntity;
 import org.openecomp.sdcrests.vendorlicense.types.FeatureGroupDescriptorDto;
-import org.testng.annotations.Test;
 
 
-public class MapFeatureGroupDescriptorDtoToFeatureGroupEntityTest {
+class MapFeatureGroupDescriptorDtoToFeatureGroupEntityTest {
 
     @Test
-    public void testName() {
+    void testName() {
         FeatureGroupDescriptorDto source = new FeatureGroupDescriptorDto();
         FeatureGroupEntity target = new FeatureGroupEntity();
         MapFeatureGroupDescriptorDtoToFeatureGroupEntity mapper =
@@ -38,7 +39,7 @@ public class MapFeatureGroupDescriptorDtoToFeatureGroupEntityTest {
     }
 
     @Test
-    public void testDescription() {
+    void testDescription() {
         FeatureGroupDescriptorDto source = new FeatureGroupDescriptorDto();
         FeatureGroupEntity target = new FeatureGroupEntity();
         MapFeatureGroupDescriptorDtoToFeatureGroupEntity mapper =
@@ -50,7 +51,7 @@ public class MapFeatureGroupDescriptorDtoToFeatureGroupEntityTest {
     }
 
     @Test
-    public void testPartNumber() {
+    void testPartNumber() {
         FeatureGroupDescriptorDto source = new FeatureGroupDescriptorDto();
         FeatureGroupEntity target = new FeatureGroupEntity();
         MapFeatureGroupDescriptorDtoToFeatureGroupEntity mapper =
index cc67603..9707e06 100644 (file)
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
 
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import org.junit.jupiter.api.Test;
 import org.openecomp.sdc.vendorlicense.dao.types.FeatureGroupEntity;
 import org.openecomp.sdcrests.vendorlicense.types.FeatureGroupDescriptorDto;
-import org.testng.annotations.Test;
 
 
-public class MapFeatureGroupEntityToFeatureGroupDescriptorDtoTest {
+class MapFeatureGroupEntityToFeatureGroupDescriptorDtoTest {
 
     @Test
-    public void testDescription() {
+    void testDescription() {
         FeatureGroupEntity source = new FeatureGroupEntity();
         FeatureGroupDescriptorDto target = new FeatureGroupDescriptorDto();
         MapFeatureGroupEntityToFeatureGroupDescriptorDto mapper =
@@ -38,7 +39,7 @@ public class MapFeatureGroupEntityToFeatureGroupDescriptorDtoTest {
     }
 
     @Test
-    public void testName() {
+    void testName() {
         FeatureGroupEntity source = new FeatureGroupEntity();
         FeatureGroupDescriptorDto target = new FeatureGroupDescriptorDto();
         MapFeatureGroupEntityToFeatureGroupDescriptorDto mapper =
@@ -50,7 +51,7 @@ public class MapFeatureGroupEntityToFeatureGroupDescriptorDtoTest {
     }
 
     @Test
-    public void testPartNumber() {
+    void testPartNumber() {
         FeatureGroupEntity source = new FeatureGroupEntity();
         FeatureGroupDescriptorDto target = new FeatureGroupDescriptorDto();
         MapFeatureGroupEntityToFeatureGroupDescriptorDto mapper =
index 2b94178..a8ebe95 100644 (file)
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import org.openecomp.sdc.vendorlicense.dao.types.LicenseAgreementEntity;
 import org.openecomp.sdc.vendorlicense.dao.types.LicenseTerm;
 import org.openecomp.sdcrests.vendorlicense.types.ChoiceOrOtherDto;
 import org.openecomp.sdcrests.vendorlicense.types.LicenseAgreementDescriptorDto;
-import org.testng.annotations.Test;
+import org.junit.jupiter.api.Test;
 
 
-public class MapLicenseAgreementDescriptorDtoToLicenseAgreementEntityTest {
+class MapLicenseAgreementDescriptorDtoToLicenseAgreementEntityTest {
 
     @Test
-    public void testName() {
+    void testName() {
         LicenseAgreementDescriptorDto source = new LicenseAgreementDescriptorDto();
         LicenseAgreementEntity target = new LicenseAgreementEntity();
         MapLicenseAgreementDescriptorDtoToLicenseAgreementEntity mapper =
@@ -40,7 +40,7 @@ public class MapLicenseAgreementDescriptorDtoToLicenseAgreementEntityTest {
     }
 
     @Test
-    public void testDescription() {
+    void testDescription() {
         LicenseAgreementDescriptorDto source = new LicenseAgreementDescriptorDto();
         LicenseAgreementEntity target = new LicenseAgreementEntity();
         MapLicenseAgreementDescriptorDtoToLicenseAgreementEntity mapper =
@@ -52,7 +52,7 @@ public class MapLicenseAgreementDescriptorDtoToLicenseAgreementEntityTest {
     }
 
     @Test
-    public void testRequirementsAndConstrains() {
+    void testRequirementsAndConstrains() {
         LicenseAgreementDescriptorDto source = new LicenseAgreementDescriptorDto();
         LicenseAgreementEntity target = new LicenseAgreementEntity();
         MapLicenseAgreementDescriptorDtoToLicenseAgreementEntity mapper =
@@ -64,7 +64,7 @@ public class MapLicenseAgreementDescriptorDtoToLicenseAgreementEntityTest {
     }
 
     @Test
-    public void testLicenseTerm() {
+    void testLicenseTerm() {
         LicenseAgreementDescriptorDto source = new LicenseAgreementDescriptorDto();
         LicenseAgreementEntity target = new LicenseAgreementEntity();
         MapLicenseAgreementDescriptorDtoToLicenseAgreementEntity mapper =
index b7c74e0..f2c2e7a 100644 (file)
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import org.openecomp.sdc.vendorlicense.dao.types.ChoiceOrOther;
 import org.openecomp.sdc.vendorlicense.dao.types.LicenseAgreementEntity;
 import org.openecomp.sdc.vendorlicense.dao.types.LicenseTerm;
 import org.openecomp.sdcrests.vendorlicense.types.LicenseAgreementDescriptorDto;
-import org.testng.annotations.Test;
+import org.junit.jupiter.api.Test;
 
 
-public class MapLicenseAgreementEntityToLicenseAgreementDescriptorDtoTest {
+class MapLicenseAgreementEntityToLicenseAgreementDescriptorDtoTest {
 
     @Test
-    public void testLicenseTerm() {
+    void testLicenseTerm() {
         LicenseAgreementEntity source = new LicenseAgreementEntity();
         LicenseAgreementDescriptorDto target = new LicenseAgreementDescriptorDto();
         MapLicenseAgreementEntityToLicenseAgreementDescriptorDto mapper =
@@ -41,7 +41,7 @@ public class MapLicenseAgreementEntityToLicenseAgreementDescriptorDtoTest {
     }
 
     @Test
-    public void testName() {
+    void testName() {
         LicenseAgreementEntity source = new LicenseAgreementEntity();
         LicenseAgreementDescriptorDto target = new LicenseAgreementDescriptorDto();
         MapLicenseAgreementEntityToLicenseAgreementDescriptorDto mapper =
@@ -53,7 +53,7 @@ public class MapLicenseAgreementEntityToLicenseAgreementDescriptorDtoTest {
     }
 
     @Test
-    public void testDescription() {
+    void testDescription() {
         LicenseAgreementEntity source = new LicenseAgreementEntity();
         LicenseAgreementDescriptorDto target = new LicenseAgreementDescriptorDto();
         MapLicenseAgreementEntityToLicenseAgreementDescriptorDto mapper =
@@ -65,7 +65,7 @@ public class MapLicenseAgreementEntityToLicenseAgreementDescriptorDtoTest {
     }
 
     @Test
-    public void testRequirementsAndConstrains() {
+    void testRequirementsAndConstrains() {
         LicenseAgreementEntity source = new LicenseAgreementEntity();
         LicenseAgreementDescriptorDto target = new LicenseAgreementDescriptorDto();
         MapLicenseAgreementEntityToLicenseAgreementDescriptorDto mapper =
index 6a6ae36..3c66a32 100644 (file)
@@ -16,7 +16,7 @@
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import java.util.Collections;
 import java.util.HashSet;
@@ -27,13 +27,13 @@ import org.openecomp.sdc.vendorlicense.dao.types.MultiChoiceOrOther;
 import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
 import org.openecomp.sdc.vendorlicense.dao.types.ThresholdUnit;
 import org.openecomp.sdcrests.vendorlicense.types.LicenseKeyGroupEntityDto;
-import org.testng.annotations.Test;
+import org.junit.jupiter.api.Test;
 
 
-public class MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDtoTest {
+class MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDtoTest {
 
     @Test
-    public void testReferencingFeatureGroups() {
+    void testReferencingFeatureGroups() {
         LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
         LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
         MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
@@ -45,7 +45,7 @@ public class MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDtoTest {
     }
 
     @Test
-    public void testDescription() {
+    void testDescription() {
         LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
         LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
         MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
@@ -57,7 +57,7 @@ public class MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDtoTest {
     }
 
     @Test
-    public void testType() {
+    void testType() {
         LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
         LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
         MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
@@ -69,7 +69,7 @@ public class MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDtoTest {
     }
 
     @Test
-    public void testIncrements() {
+    void testIncrements() {
         LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
         LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
         MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
@@ -81,7 +81,7 @@ public class MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDtoTest {
     }
 
     @Test
-    public void testExpiryDate() {
+    void testExpiryDate() {
         LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
         LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
         MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
@@ -93,7 +93,7 @@ public class MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDtoTest {
     }
 
     @Test
-    public void testId() {
+    void testId() {
         LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
         LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
         MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
@@ -105,7 +105,7 @@ public class MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDtoTest {
     }
 
     @Test
-    public void testThresholdUnits() {
+    void testThresholdUnits() {
         LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
         LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
         MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
@@ -117,7 +117,7 @@ public class MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDtoTest {
     }
 
     @Test
-    public void testThresholdValue() {
+    void testThresholdValue() {
         LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
         LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
         MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
@@ -129,7 +129,7 @@ public class MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDtoTest {
     }
 
     @Test
-    public void testName() {
+    void testName() {
         LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
         LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
         MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
@@ -141,7 +141,7 @@ public class MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDtoTest {
     }
 
     @Test
-    public void testOperationalScope() {
+    void testOperationalScope() {
         LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
         LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
         MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
@@ -156,7 +156,7 @@ public class MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDtoTest {
     }
 
     @Test
-    public void testStartDate() {
+    void testStartDate() {
         LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
         LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
         MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
@@ -168,7 +168,7 @@ public class MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDtoTest {
     }
 
     @Test
-    public void testManufacturerReferenceNumber() {
+    void testManufacturerReferenceNumber() {
         LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
         LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
         MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper = new
index a4c1cd9..ebb5947 100644 (file)
@@ -16,7 +16,7 @@
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import org.openecomp.sdc.vendorlicense.dao.types.LicenseKeyGroupEntity;
 import org.openecomp.sdc.vendorlicense.dao.types.LicenseKeyType;
@@ -24,14 +24,14 @@ import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
 import org.openecomp.sdc.vendorlicense.dao.types.ThresholdUnit;
 import org.openecomp.sdcrests.vendorlicense.types.LicenseKeyGroupRequestDto;
 import org.openecomp.sdcrests.vendorlicense.types.MultiChoiceOrOtherDto;
-import org.testng.annotations.Test;
+import org.junit.jupiter.api.Test;
 
 
-public class MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntityTest {
+class MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntityTest {
 
 
     @Test
-    public void testExpiryDate() {
+    void testExpiryDate() {
         LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
         LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
         MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
@@ -43,7 +43,7 @@ public class MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntityTest {
     }
 
     @Test
-    public void testThresholdUnits() {
+    void testThresholdUnits() {
         LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
         LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
         MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
@@ -55,7 +55,7 @@ public class MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntityTest {
     }
 
     @Test
-    public void testName() {
+    void testName() {
         LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
         LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
         MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
@@ -67,7 +67,7 @@ public class MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntityTest {
     }
 
     @Test
-    public void testDescription() {
+    void testDescription() {
         LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
         LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
         MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
@@ -79,7 +79,7 @@ public class MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntityTest {
     }
 
     @Test
-    public void testThresholdValue() {
+    void testThresholdValue() {
         LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
         LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
         MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
@@ -91,7 +91,7 @@ public class MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntityTest {
     }
 
     @Test
-    public void testType() {
+    void testType() {
         LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
         LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
         MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
@@ -103,7 +103,7 @@ public class MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntityTest {
     }
 
     @Test
-    public void testIncrements() {
+    void testIncrements() {
         LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
         LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
         MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
@@ -115,7 +115,7 @@ public class MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntityTest {
     }
 
     @Test
-    public void testOperationalScope() {
+    void testOperationalScope() {
         LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
         LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
         MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
@@ -127,7 +127,7 @@ public class MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntityTest {
     }
 
     @Test
-    public void testStartDate() {
+    void testStartDate() {
         LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
         LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
         MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
@@ -139,7 +139,7 @@ public class MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntityTest {
     }
 
     @Test
-    public void testManufacturerReferenceNumber() {
+    void testManufacturerReferenceNumber() {
         LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
         LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
         MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper = new
index 2137914..88b6bea 100644 (file)
  */
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import org.openecomp.sdc.vendorlicense.dao.types.LimitEntity;
-import org.testng.annotations.Test;
+import org.junit.jupiter.api.Test;
 
-public class MapLimitEntityToLimitCreationDtoTest {
+class MapLimitEntityToLimitCreationDtoTest {
 
     @Test
-    public void testId() {
+    void testId() {
         LimitEntity source = new LimitEntity();
         LimitCreationDto target = new LimitCreationDto();
         MapLimitEntityToLimitCreationDto mapper = new MapLimitEntityToLimitCreationDto();
index d8034dd..6f65a3c 100644 (file)
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import org.openecomp.sdc.vendorlicense.dao.types.AggregationFunction;
 import org.openecomp.sdc.vendorlicense.dao.types.LimitEntity;
 import org.openecomp.sdc.vendorlicense.dao.types.LimitType;
 import org.openecomp.sdcrests.vendorlicense.types.LimitEntityDto;
-import org.testng.annotations.Test;
+import org.junit.jupiter.api.Test;
 
 
-public class MapLimitEntityToLimitDtoTest {
+class MapLimitEntityToLimitDtoTest {
 
     @Test
-    public void testDescription() {
+    void testDescription() {
         LimitEntity source = new LimitEntity();
         LimitEntityDto target = new LimitEntityDto();
         MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
@@ -39,7 +39,7 @@ public class MapLimitEntityToLimitDtoTest {
     }
 
     @Test
-    public void testAggregationFunction() {
+    void testAggregationFunction() {
         LimitEntity source = new LimitEntity();
         LimitEntityDto target = new LimitEntityDto();
         MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
@@ -50,7 +50,7 @@ public class MapLimitEntityToLimitDtoTest {
     }
 
     @Test
-    public void testType() {
+    void testType() {
         LimitEntity source = new LimitEntity();
         LimitEntityDto target = new LimitEntityDto();
         MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
@@ -61,7 +61,7 @@ public class MapLimitEntityToLimitDtoTest {
     }
 
     @Test
-    public void testUnit() {
+    void testUnit() {
         LimitEntity source = new LimitEntity();
         LimitEntityDto target = new LimitEntityDto();
         MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
@@ -72,7 +72,7 @@ public class MapLimitEntityToLimitDtoTest {
     }
 
     @Test
-    public void testMetric() {
+    void testMetric() {
         LimitEntity source = new LimitEntity();
         LimitEntityDto target = new LimitEntityDto();
         MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
@@ -83,7 +83,7 @@ public class MapLimitEntityToLimitDtoTest {
     }
 
     @Test
-    public void testName() {
+    void testName() {
         LimitEntity source = new LimitEntity();
         LimitEntityDto target = new LimitEntityDto();
         MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
@@ -94,7 +94,7 @@ public class MapLimitEntityToLimitDtoTest {
     }
 
     @Test
-    public void testId() {
+    void testId() {
         LimitEntity source = new LimitEntity();
         LimitEntityDto target = new LimitEntityDto();
         MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
@@ -105,7 +105,7 @@ public class MapLimitEntityToLimitDtoTest {
     }
 
     @Test
-    public void testTime() {
+    void testTime() {
         LimitEntity source = new LimitEntity();
         LimitEntityDto target = new LimitEntityDto();
         MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
@@ -116,7 +116,7 @@ public class MapLimitEntityToLimitDtoTest {
     }
 
     @Test
-    public void testValue() {
+    void testValue() {
         LimitEntity source = new LimitEntity();
         LimitEntityDto target = new LimitEntityDto();
         MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
index 21f5729..c12dae0 100644 (file)
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import java.util.HashSet;
 import java.util.Set;
 import org.openecomp.sdc.vendorlicense.dao.types.MultiChoiceOrOther;
 import org.openecomp.sdcrests.vendorlicense.types.MultiChoiceOrOtherDto;
-import org.testng.annotations.Test;
+import org.junit.jupiter.api.Test;
 
 
-public class MapMultiChoiceOrOtherDtoToMultiChoiceOrOtherTest {
+class MapMultiChoiceOrOtherDtoToMultiChoiceOrOtherTest {
 
     @Test
-    public void testChoices() {
+    void testChoices() {
         MultiChoiceOrOtherDto source = new MultiChoiceOrOtherDto();
         MultiChoiceOrOther target = new MultiChoiceOrOther();
         MapMultiChoiceOrOtherDtoToMultiChoiceOrOther mapper = new MapMultiChoiceOrOtherDtoToMultiChoiceOrOther();
@@ -41,7 +41,7 @@ public class MapMultiChoiceOrOtherDtoToMultiChoiceOrOtherTest {
     }
 
     @Test
-    public void testOther() {
+    void testOther() {
         MultiChoiceOrOtherDto source = new MultiChoiceOrOtherDto();
         MultiChoiceOrOther target = new MultiChoiceOrOther();
         MapMultiChoiceOrOtherDtoToMultiChoiceOrOther mapper = new MapMultiChoiceOrOtherDtoToMultiChoiceOrOther();
index a0db43e..d2388a1 100644 (file)
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import java.util.Collections;
 import java.util.HashSet;
 import java.util.Set;
 import org.openecomp.sdc.vendorlicense.dao.types.MultiChoiceOrOther;
 import org.openecomp.sdcrests.vendorlicense.types.MultiChoiceOrOtherDto;
-import org.testng.annotations.Test;
+import org.junit.jupiter.api.Test;
 
 
-public class MapMultiChoiceOrOtherToMultiChoiceOrOtherDtoTest {
+class MapMultiChoiceOrOtherToMultiChoiceOrOtherDtoTest {
 
     @Test
-    public void testOther() {
+    void testOther() {
         MultiChoiceOrOther source = new MultiChoiceOrOther();
         MultiChoiceOrOtherDto target = new MultiChoiceOrOtherDto();
         MapMultiChoiceOrOtherToMultiChoiceOrOtherDto mapper = new MapMultiChoiceOrOtherToMultiChoiceOrOtherDto();
@@ -40,7 +40,7 @@ public class MapMultiChoiceOrOtherToMultiChoiceOrOtherDtoTest {
     }
 
     @Test
-    public void testChoices() {
+    void testChoices() {
         MultiChoiceOrOther source = new MultiChoiceOrOther();
         MultiChoiceOrOtherDto target = new MultiChoiceOrOtherDto();
         MapMultiChoiceOrOtherToMultiChoiceOrOtherDto mapper = new MapMultiChoiceOrOtherToMultiChoiceOrOtherDto();
index b40c669..916711c 100644 (file)
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import org.openecomp.sdc.vendorlicense.dao.types.VendorLicenseModelEntity;
 import org.openecomp.sdcrests.vendorlicense.types.VendorLicenseModelEntityDto;
-import org.testng.annotations.Test;
+import org.junit.jupiter.api.Test;
 
 
-public class MapVendorLicenseModelEntityToDtoTest {
+class MapVendorLicenseModelEntityToDtoTest {
 
     @Test
-    public void testIconRef() {
+    void testIconRef() {
         VendorLicenseModelEntity source = new VendorLicenseModelEntity();
         VendorLicenseModelEntityDto target = new VendorLicenseModelEntityDto();
         MapVendorLicenseModelEntityToDto mapper = new MapVendorLicenseModelEntityToDto();
@@ -37,7 +37,7 @@ public class MapVendorLicenseModelEntityToDtoTest {
     }
 
     @Test
-    public void testDescription() {
+    void testDescription() {
         VendorLicenseModelEntity source = new VendorLicenseModelEntity();
         VendorLicenseModelEntityDto target = new VendorLicenseModelEntityDto();
         MapVendorLicenseModelEntityToDto mapper = new MapVendorLicenseModelEntityToDto();
@@ -48,7 +48,7 @@ public class MapVendorLicenseModelEntityToDtoTest {
     }
 
     @Test
-    public void testId() {
+    void testId() {
         VendorLicenseModelEntity source = new VendorLicenseModelEntity();
         VendorLicenseModelEntityDto target = new VendorLicenseModelEntityDto();
         MapVendorLicenseModelEntityToDto mapper = new MapVendorLicenseModelEntityToDto();
@@ -59,7 +59,7 @@ public class MapVendorLicenseModelEntityToDtoTest {
     }
 
     @Test
-    public void testVendorName() {
+    void testVendorName() {
         VendorLicenseModelEntity source = new VendorLicenseModelEntity();
         VendorLicenseModelEntityDto target = new VendorLicenseModelEntityDto();
         MapVendorLicenseModelEntityToDto mapper = new MapVendorLicenseModelEntityToDto();
index bd4869e..29db7dc 100644 (file)
 
 package org.openecomp.sdcrests.vendorlicense.rest.mapping;
 
-import static org.testng.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import org.openecomp.sdc.vendorlicense.dao.types.VendorLicenseModelEntity;
 import org.openecomp.sdcrests.vendorlicense.types.VendorLicenseModelRequestDto;
-import org.testng.annotations.Test;
+import org.junit.jupiter.api.Test;
 
 
-public class MapVendorLicenseModelRequestDtoToVendorLicenseModelEntityTest {
+class MapVendorLicenseModelRequestDtoToVendorLicenseModelEntityTest {
 
     @Test
-    public void testDescription() {
+    void testDescription() {
         VendorLicenseModelRequestDto source = new VendorLicenseModelRequestDto();
         VendorLicenseModelEntity target = new VendorLicenseModelEntity();
         MapVendorLicenseModelRequestDtoToVendorLicenseModelEntity mapper =
@@ -38,7 +38,7 @@ public class MapVendorLicenseModelRequestDtoToVendorLicenseModelEntityTest {
     }
 
     @Test
-    public void testVendorName() {
+    void testVendorName() {
         VendorLicenseModelRequestDto source = new VendorLicenseModelRequestDto();
         VendorLicenseModelEntity target = new VendorLicenseModelEntity();
         MapVendorLicenseModelRequestDtoToVendorLicenseModelEntity mapper =
@@ -50,7 +50,7 @@ public class MapVendorLicenseModelRequestDtoToVendorLicenseModelEntityTest {
     }
 
     @Test
-    public void testIconRef() {
+    void testIconRef() {
         VendorLicenseModelRequestDto source = new VendorLicenseModelRequestDto();
         VendorLicenseModelEntity target = new VendorLicenseModelEntity();
         MapVendorLicenseModelRequestDtoToVendorLicenseModelEntity mapper =
index 85e68f0..6ec59da 100644 (file)
       <scope>test</scope>
     </dependency>
 
-    <dependency>
-      <groupId>com.github.testng-team</groupId>
-      <artifactId>testng-junit5</artifactId>
-      <version>0.0.1</version>
-      <scope>test</scope>
-      <exclusions>
-        <exclusion>
-          <groupId>org.junit.platform</groupId>
-          <artifactId>junit-platform-engine</artifactId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-
     <dependency>
       <groupId>com.google.code.bean-matchers</groupId>
       <artifactId>bean-matchers</artifactId>