diff options
author | adheli.tavares <adheli.tavares@est.tech> | 2023-08-21 14:35:56 +0100 |
---|---|---|
committer | adheli.tavares <adheli.tavares@est.tech> | 2023-09-22 16:01:50 +0100 |
commit | 08ec52b6ed5ef7159087d708bddfa40d9ac03717 (patch) | |
tree | e3272e724c86cba0b57d84d43b6acc51e2f5ab32 /model/src/test | |
parent | ff1698142a22a4811895d2ac7047fbadbb36b396 (diff) |
Upgrade Java 17
Issue-ID: POLICY-4803
Change-Id: Iad0d08ee6f8ab18eb177b458d8edbba4002bcc73
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'model/src/test')
-rw-r--r-- | model/src/test/java/org/onap/policy/distribution/model/TestModels.java | 9 |
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()); } } |