From 53d8916cc60d97e2ce7ae345f8cc25f5602567da Mon Sep 17 00:00:00 2001 From: liamfallon Date: Tue, 6 Nov 2018 12:02:46 +0000 Subject: Refactor unit test data There were many copies of test policies and examples strewn through the Apex unit tests. This change cleans up the unit tests so that a single version of all example policies is used in all tests. Also added a new relative file root command line parameter to Apex to allow the root of relative paths in configuration files to be set. Apologies for the size of this review but unfortunately all of this must be done in one shot. Issue-ID: POLICY-1252 Change-Id: Ibbb18fbf18e3897a1c61301d0a65e62bc643a0e9 Signed-off-by: liamfallon --- .../org/onap/policy/apex/model/utilities/typeutils/ClassBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'model/utilities') diff --git a/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/ClassBuilder.java b/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/ClassBuilder.java index 2e6e96d0b..1bdf39317 100644 --- a/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/ClassBuilder.java +++ b/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/ClassBuilder.java @@ -69,7 +69,7 @@ public class ClassBuilder { try { return new ClassBuilder(Class.forName("java.lang." + className)); } catch (Exception classFindException) { - LOGGER.warn("class nout found", classFindException); + LOGGER.warn("class not found", classFindException); throw new IllegalArgumentException("Class '" + className + "' not found. Also looked for a class called 'java.lang." + className + "'", e); } -- cgit 1.2.3-korg