<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>
<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>
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.
* @author EVITALIY
* @since 28 Dec 17
*/
-public class ChoiceOrOtherMappingTest {
+class ChoiceOrOtherMappingTest {
private static final String UNKNOWN = "Unknown";
}
@Test
- public void testApplyMappingFromDto() {
+ void testApplyMappingFromDto() {
ChoiceOrOtherDto<TestEnum> source = new ChoiceOrOtherDto<>();
source.setChoice(TestEnum.Yes);
}
@Test
- public void testApplyMappingToDto() {
+ void testApplyMappingToDto() {
ChoiceOrOther<TestEnum> source = new ChoiceOrOther<>(TestEnum.Yes, UNKNOWN);
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();
}
@Test
- public void testOther() {
+ void testOther() {
ChoiceOrOtherDto source = new ChoiceOrOtherDto();
ChoiceOrOther target = new ChoiceOrOther();
MapChoiceOrOtherDtoToChoiceOrOther mapper = new MapChoiceOrOtherDtoToChoiceOrOther();
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();
}
@Test
- public void testChoice() {
+ void testChoice() {
ChoiceOrOther source = new ChoiceOrOther();
ChoiceOrOtherDto target = new ChoiceOrOtherDto();
MapChoiceOrOtherToChoiceOrOtherDto mapper = new MapChoiceOrOtherToChoiceOrOtherDto();
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 =
}
@Test
- public void testDescription() {
+ void testDescription() {
EntitlementPoolEntity source = new EntitlementPoolEntity();
EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
}
@Test
- public void testIncrements() {
+ void testIncrements() {
EntitlementPoolEntity source = new EntitlementPoolEntity();
EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
}
@Test
- public void testExpiryDate() {
+ void testExpiryDate() {
EntitlementPoolEntity source = new EntitlementPoolEntity();
EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
}
@Test
- public void testId() {
+ void testId() {
EntitlementPoolEntity source = new EntitlementPoolEntity();
EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
}
@Test
- public void testThresholdValue() {
+ void testThresholdValue() {
EntitlementPoolEntity source = new EntitlementPoolEntity();
EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
}
@Test
- public void testName() {
+ void testName() {
EntitlementPoolEntity source = new EntitlementPoolEntity();
EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
}
@Test
- public void testOperationalScope() {
+ void testOperationalScope() {
EntitlementPoolEntity source = new EntitlementPoolEntity();
EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
}
@Test
- public void testStartDate() {
+ void testStartDate() {
EntitlementPoolEntity source = new EntitlementPoolEntity();
EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
}
@Test
- public void testManufacturerReferenceNumber() {
+ void testManufacturerReferenceNumber() {
EntitlementPoolEntity source = new EntitlementPoolEntity();
EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper = new
}
@Test
- public void testType() {
+ void testType() {
EntitlementPoolEntity source = new EntitlementPoolEntity();
EntitlementPoolEntityDto target = new EntitlementPoolEntityDto();
MapEntitlementPoolEntityToEntitlementPoolEntityDto mapper =
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 =
}
@Test
- public void testName() {
+ void testName() {
EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
EntitlementPoolEntity target = new EntitlementPoolEntity();
MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper =
}
@Test
- public void testDescription() {
+ void testDescription() {
EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
EntitlementPoolEntity target = new EntitlementPoolEntity();
MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper =
}
@Test
- public void testThresholdValue() {
+ void testThresholdValue() {
EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
EntitlementPoolEntity target = new EntitlementPoolEntity();
MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper =
}
@Test
- public void testIncrements() {
+ void testIncrements() {
EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
EntitlementPoolEntity target = new EntitlementPoolEntity();
MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper =
}
@Test
- public void testOperationalScope() {
+ void testOperationalScope() {
EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
EntitlementPoolEntity target = new EntitlementPoolEntity();
MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper =
}
@Test
- public void testStartDate() {
+ void testStartDate() {
EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
EntitlementPoolEntity target = new EntitlementPoolEntity();
MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper =
}
@Test
- public void testManufacturerReferenceNumber() {
+ void testManufacturerReferenceNumber() {
EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
EntitlementPoolEntity target = new EntitlementPoolEntity();
MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper = new
}
@Test
- public void testType() {
+ void testType() {
EntitlementPoolRequestDto source = new EntitlementPoolRequestDto();
EntitlementPoolEntity target = new EntitlementPoolEntity();
MapEntitlementPoolRequestDtoToEntitlementPoolEntity mapper = new
assertEquals(target.getType(), entitlementPoolType);
}
-
enum TestEnum {
Yes
}
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 =
}
@Test
- public void testDescription() {
+ void testDescription() {
FeatureGroupDescriptorDto source = new FeatureGroupDescriptorDto();
FeatureGroupEntity target = new FeatureGroupEntity();
MapFeatureGroupDescriptorDtoToFeatureGroupEntity mapper =
}
@Test
- public void testPartNumber() {
+ void testPartNumber() {
FeatureGroupDescriptorDto source = new FeatureGroupDescriptorDto();
FeatureGroupEntity target = new FeatureGroupEntity();
MapFeatureGroupDescriptorDtoToFeatureGroupEntity mapper =
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 =
}
@Test
- public void testName() {
+ void testName() {
FeatureGroupEntity source = new FeatureGroupEntity();
FeatureGroupDescriptorDto target = new FeatureGroupDescriptorDto();
MapFeatureGroupEntityToFeatureGroupDescriptorDto mapper =
}
@Test
- public void testPartNumber() {
+ void testPartNumber() {
FeatureGroupEntity source = new FeatureGroupEntity();
FeatureGroupDescriptorDto target = new FeatureGroupDescriptorDto();
MapFeatureGroupEntityToFeatureGroupDescriptorDto mapper =
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 =
}
@Test
- public void testDescription() {
+ void testDescription() {
LicenseAgreementDescriptorDto source = new LicenseAgreementDescriptorDto();
LicenseAgreementEntity target = new LicenseAgreementEntity();
MapLicenseAgreementDescriptorDtoToLicenseAgreementEntity mapper =
}
@Test
- public void testRequirementsAndConstrains() {
+ void testRequirementsAndConstrains() {
LicenseAgreementDescriptorDto source = new LicenseAgreementDescriptorDto();
LicenseAgreementEntity target = new LicenseAgreementEntity();
MapLicenseAgreementDescriptorDtoToLicenseAgreementEntity mapper =
}
@Test
- public void testLicenseTerm() {
+ void testLicenseTerm() {
LicenseAgreementDescriptorDto source = new LicenseAgreementDescriptorDto();
LicenseAgreementEntity target = new LicenseAgreementEntity();
MapLicenseAgreementDescriptorDtoToLicenseAgreementEntity mapper =
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 =
}
@Test
- public void testName() {
+ void testName() {
LicenseAgreementEntity source = new LicenseAgreementEntity();
LicenseAgreementDescriptorDto target = new LicenseAgreementDescriptorDto();
MapLicenseAgreementEntityToLicenseAgreementDescriptorDto mapper =
}
@Test
- public void testDescription() {
+ void testDescription() {
LicenseAgreementEntity source = new LicenseAgreementEntity();
LicenseAgreementDescriptorDto target = new LicenseAgreementDescriptorDto();
MapLicenseAgreementEntityToLicenseAgreementDescriptorDto mapper =
}
@Test
- public void testRequirementsAndConstrains() {
+ void testRequirementsAndConstrains() {
LicenseAgreementEntity source = new LicenseAgreementEntity();
LicenseAgreementDescriptorDto target = new LicenseAgreementDescriptorDto();
MapLicenseAgreementEntityToLicenseAgreementDescriptorDto mapper =
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.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 =
}
@Test
- public void testDescription() {
+ void testDescription() {
LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
}
@Test
- public void testType() {
+ void testType() {
LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
}
@Test
- public void testIncrements() {
+ void testIncrements() {
LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
}
@Test
- public void testExpiryDate() {
+ void testExpiryDate() {
LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
}
@Test
- public void testId() {
+ void testId() {
LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
}
@Test
- public void testThresholdUnits() {
+ void testThresholdUnits() {
LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
}
@Test
- public void testThresholdValue() {
+ void testThresholdValue() {
LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
}
@Test
- public void testName() {
+ void testName() {
LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
}
@Test
- public void testOperationalScope() {
+ void testOperationalScope() {
LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
}
@Test
- public void testStartDate() {
+ void testStartDate() {
LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper =
}
@Test
- public void testManufacturerReferenceNumber() {
+ void testManufacturerReferenceNumber() {
LicenseKeyGroupEntity source = new LicenseKeyGroupEntity();
LicenseKeyGroupEntityDto target = new LicenseKeyGroupEntityDto();
MapLicenseKeyGroupEntityToLicenseKeyGroupEntityDto mapper = new
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;
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 =
}
@Test
- public void testThresholdUnits() {
+ void testThresholdUnits() {
LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
}
@Test
- public void testName() {
+ void testName() {
LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
}
@Test
- public void testDescription() {
+ void testDescription() {
LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
}
@Test
- public void testThresholdValue() {
+ void testThresholdValue() {
LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
}
@Test
- public void testType() {
+ void testType() {
LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
}
@Test
- public void testIncrements() {
+ void testIncrements() {
LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
}
@Test
- public void testOperationalScope() {
+ void testOperationalScope() {
LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
}
@Test
- public void testStartDate() {
+ void testStartDate() {
LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper =
}
@Test
- public void testManufacturerReferenceNumber() {
+ void testManufacturerReferenceNumber() {
LicenseKeyGroupRequestDto source = new LicenseKeyGroupRequestDto();
LicenseKeyGroupEntity target = new LicenseKeyGroupEntity();
MapLicenseKeyGroupRequestDtoToLicenseKeyGroupEntity mapper = new
*/
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();
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();
}
@Test
- public void testAggregationFunction() {
+ void testAggregationFunction() {
LimitEntity source = new LimitEntity();
LimitEntityDto target = new LimitEntityDto();
MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
}
@Test
- public void testType() {
+ void testType() {
LimitEntity source = new LimitEntity();
LimitEntityDto target = new LimitEntityDto();
MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
}
@Test
- public void testUnit() {
+ void testUnit() {
LimitEntity source = new LimitEntity();
LimitEntityDto target = new LimitEntityDto();
MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
}
@Test
- public void testMetric() {
+ void testMetric() {
LimitEntity source = new LimitEntity();
LimitEntityDto target = new LimitEntityDto();
MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
}
@Test
- public void testName() {
+ void testName() {
LimitEntity source = new LimitEntity();
LimitEntityDto target = new LimitEntityDto();
MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
}
@Test
- public void testId() {
+ void testId() {
LimitEntity source = new LimitEntity();
LimitEntityDto target = new LimitEntityDto();
MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
}
@Test
- public void testTime() {
+ void testTime() {
LimitEntity source = new LimitEntity();
LimitEntityDto target = new LimitEntityDto();
MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
}
@Test
- public void testValue() {
+ void testValue() {
LimitEntity source = new LimitEntity();
LimitEntityDto target = new LimitEntityDto();
MapLimitEntityToLimitDto mapper = new MapLimitEntityToLimitDto();
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();
}
@Test
- public void testOther() {
+ void testOther() {
MultiChoiceOrOtherDto source = new MultiChoiceOrOtherDto();
MultiChoiceOrOther target = new MultiChoiceOrOther();
MapMultiChoiceOrOtherDtoToMultiChoiceOrOther mapper = new MapMultiChoiceOrOtherDtoToMultiChoiceOrOther();
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();
}
@Test
- public void testChoices() {
+ void testChoices() {
MultiChoiceOrOther source = new MultiChoiceOrOther();
MultiChoiceOrOtherDto target = new MultiChoiceOrOtherDto();
MapMultiChoiceOrOtherToMultiChoiceOrOtherDto mapper = new MapMultiChoiceOrOtherToMultiChoiceOrOtherDto();
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();
}
@Test
- public void testDescription() {
+ void testDescription() {
VendorLicenseModelEntity source = new VendorLicenseModelEntity();
VendorLicenseModelEntityDto target = new VendorLicenseModelEntityDto();
MapVendorLicenseModelEntityToDto mapper = new MapVendorLicenseModelEntityToDto();
}
@Test
- public void testId() {
+ void testId() {
VendorLicenseModelEntity source = new VendorLicenseModelEntity();
VendorLicenseModelEntityDto target = new VendorLicenseModelEntityDto();
MapVendorLicenseModelEntityToDto mapper = new MapVendorLicenseModelEntityToDto();
}
@Test
- public void testVendorName() {
+ void testVendorName() {
VendorLicenseModelEntity source = new VendorLicenseModelEntity();
VendorLicenseModelEntityDto target = new VendorLicenseModelEntityDto();
MapVendorLicenseModelEntityToDto mapper = new MapVendorLicenseModelEntityToDto();
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 =
}
@Test
- public void testVendorName() {
+ void testVendorName() {
VendorLicenseModelRequestDto source = new VendorLicenseModelRequestDto();
VendorLicenseModelEntity target = new VendorLicenseModelEntity();
MapVendorLicenseModelRequestDtoToVendorLicenseModelEntity mapper =
}
@Test
- public void testIconRef() {
+ void testIconRef() {
VendorLicenseModelRequestDto source = new VendorLicenseModelRequestDto();
VendorLicenseModelEntity target = new VendorLicenseModelEntity();
MapVendorLicenseModelRequestDtoToVendorLicenseModelEntity mapper =
<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>