summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2023-08-21 14:35:56 +0100
committeradheli.tavares <adheli.tavares@est.tech>2023-09-22 16:01:50 +0100
commit08ec52b6ed5ef7159087d708bddfa40d9ac03717 (patch)
treee3272e724c86cba0b57d84d43b6acc51e2f5ab32 /model
parentff1698142a22a4811895d2ac7047fbadbb36b396 (diff)
Upgrade Java 17
Issue-ID: POLICY-4803 Change-Id: Iad0d08ee6f8ab18eb177b458d8edbba4002bcc73 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'model')
-rw-r--r--model/pom.xml5
-rw-r--r--model/src/test/java/org/onap/policy/distribution/model/TestModels.java9
2 files changed, 7 insertions, 7 deletions
diff --git a/model/pom.xml b/model/pom.xml
index a9635de8..3a7f0c64 100644
--- a/model/pom.xml
+++ b/model/pom.xml
@@ -18,12 +18,13 @@
SPDX-License-Identifier: Apache-2.0
============LICENSE_END=========================================================
-->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.onap.policy.distribution</groupId>
<artifactId>policy-distribution</artifactId>
- <version>3.0.0-SNAPSHOT</version>
+ <version>3.0.1-SNAPSHOT</version>
</parent>
<artifactId>distribution-model</artifactId>
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());
}
}