diff options
author | waynedunican <wayne.dunican@est.tech> | 2024-06-13 09:13:33 +0100 |
---|---|---|
committer | Wayne Dunican <wayne.dunican@est.tech> | 2024-06-20 15:48:51 +0000 |
commit | 951a1df7e35c8aa51e91af1e17851d7d2aa45fb3 (patch) | |
tree | 59bfecd90fb46cd048becd989faf0500c446f8dc /models-decisions | |
parent | 9e8684c88435734cb2e142208436cec647cde887 (diff) |
Convert models to JUnit 5
Review for models-base, models-dao, models-decisions and models-errors
Issue-ID: POLICY-5042
Change-Id: I0fd2252dcf5c758420508facf62d70789a5e9598
Signed-off-by: waynedunican <wayne.dunican@est.tech>
Diffstat (limited to 'models-decisions')
-rw-r--r-- | models-decisions/src/test/java/org/onap/policy/models/decisions/concepts/TestModels.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/models-decisions/src/test/java/org/onap/policy/models/decisions/concepts/TestModels.java b/models-decisions/src/test/java/org/onap/policy/models/decisions/concepts/TestModels.java index 5ae9fd965..29ca7218c 100644 --- a/models-decisions/src/test/java/org/onap/policy/models/decisions/concepts/TestModels.java +++ b/models-decisions/src/test/java/org/onap/policy/models/decisions/concepts/TestModels.java @@ -3,6 +3,7 @@ * ONAP Policy Decision Models * ================================================================================ * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2024 Nordix Foundation * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,13 +26,13 @@ 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; import org.onap.policy.common.utils.test.ToStringTester; -public class TestModels { +class TestModels { @Test - public void testDecisionModels() { + void testDecisionModels() { final Validator validator = ValidatorBuilder.create().with(new ToStringTester()).with(new SetterTester()) .with(new GetterTester()).build(); validator.validate(TestModels.class.getPackage().getName(), new FilterPackageInfo()); |