aboutsummaryrefslogtreecommitdiffstats
path: root/model/src
diff options
context:
space:
mode:
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());
}
}