summaryrefslogtreecommitdiffstats
path: root/models-pdp
diff options
context:
space:
mode:
authorramverma <ram.krishna.verma@est.tech>2019-06-27 11:11:24 +0000
committerramverma <ram.krishna.verma@est.tech>2019-06-27 11:11:24 +0000
commitb359a4b56b4527b3215b89e7d637da9fbcb022af (patch)
tree764094c159c5c8ba0bdfe35ee84be3dbd0107cfe /models-pdp
parent4b43d971df6f3fc1b4ac54a301dcb1971eeb9ff8 (diff)
Use ToStringTester from utils-test
Changing ToStringTester from utils to utils-test Bump up common to 1.5.1-SNAPSHOT Change-Id: I7427673c73bd1cc52d5f24a0542e89eb33a39ae8 Issue-ID: POLICY-1746 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Diffstat (limited to 'models-pdp')
-rw-r--r--models-pdp/src/test/java/org/onap/policy/models/pdp/concepts/ModelsTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/models-pdp/src/test/java/org/onap/policy/models/pdp/concepts/ModelsTest.java b/models-pdp/src/test/java/org/onap/policy/models/pdp/concepts/ModelsTest.java
index 743839362..dbe163efe 100644
--- a/models-pdp/src/test/java/org/onap/policy/models/pdp/concepts/ModelsTest.java
+++ b/models-pdp/src/test/java/org/onap/policy/models/pdp/concepts/ModelsTest.java
@@ -27,8 +27,9 @@ 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.onap.policy.common.utils.validation.ToStringTester;
+import org.onap.policy.common.utils.test.ToStringTester;
/**
* Class to perform unit testing of models.
@@ -41,11 +42,10 @@ public class ModelsTest {
@Test
public void testPdpModels() {
final Validator validator = ValidatorBuilder.create().with(new ToStringTester()).with(new SetterTester())
- .with(new GetterTester()).build();
+ .with(new GetterTester()).build();
// exclude Test classes and PdpMessage
- validator.validate(POJO_PACKAGE, new FilterPackageInfo(),
- new FilterClassName("^((?!Test$).)*$"),
- new FilterClassName("^((?!" + PdpMessage.class.getName() + ").)*$"));
+ validator.validate(POJO_PACKAGE, new FilterPackageInfo(), new FilterClassName("^((?!Test$).)*$"),
+ new FilterClassName("^((?!" + PdpMessage.class.getName() + ").)*$"));
}
}