aboutsummaryrefslogtreecommitdiffstats
path: root/model/src
diff options
context:
space:
mode:
authorFrancescoFioraEst <francesco.fiora@est.tech>2023-08-22 14:47:22 +0100
committerLiam Fallon <liam.fallon@est.tech>2023-08-24 14:30:09 +0000
commita354531009fcfe529d08183249601adb6d0adc6e (patch)
treec6386f6056c62c20e1730ddc535fff40aeb1e27f /model/src
parent960773d01db3072b4a57dbd69e911df1af2df47c (diff)
Upgrade policy-distribution to JUnit 5java-17
Issue-ID: POLICY-4805 Change-Id: I47aaed48f3f05c2f1c5814882386e114dbad0443 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
Diffstat (limited to 'model/src')
-rw-r--r--model/src/test/java/org/onap/policy/distribution/model/TestModels.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/model/src/test/java/org/onap/policy/distribution/model/TestModels.java b/model/src/test/java/org/onap/policy/distribution/model/TestModels.java
index e5733022..3aea3efe 100644
--- a/model/src/test/java/org/onap/policy/distribution/model/TestModels.java
+++ b/model/src/test/java/org/onap/policy/distribution/model/TestModels.java
@@ -21,22 +21,21 @@
package org.onap.policy.distribution.model;
import com.openpojo.reflection.filters.FilterPackageInfo;
-import com.openpojo.validation.Validator;
import com.openpojo.validation.ValidatorBuilder;
import com.openpojo.validation.test.impl.GetterTester;
import com.openpojo.validation.test.impl.SetterTester;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
/**
* Class to perform unit testing of all policy models.
*
* @author Ram Krishna Verma (ram.krishna.verma@ericsson.com)
*/
-public class TestModels {
+class TestModels {
@Test
- public void testAllModels() {
- final Validator validator = ValidatorBuilder.create().with(new SetterTester()).with(new GetterTester()).build();
+ void testAllModels() {
+ final var validator = ValidatorBuilder.create().with(new SetterTester()).with(new GetterTester()).build();
validator.validate(PolicyInput.class.getPackage().getName(), new FilterPackageInfo());
}
}