From 9a1e2ee858f1a937e12bdb6920296b277787c27f Mon Sep 17 00:00:00 2001 From: Tomek Kaminski Date: Wed, 18 Jul 2018 14:25:02 +0200 Subject: Junits for Mapper -tests for namespace mappig method -tests for perm method -little refactor for Question and Define for mocking purpose Change-Id: I49fb8f8a123c7896e1971913e9f99ef0c049250f Issue-ID: AAF-400 Signed-off-by: Tomek Kaminski --- auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'auth/auth-core/src') diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java index 1e7a0530..ce0033cc 100644 --- a/auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java +++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java @@ -31,6 +31,7 @@ import org.onap.aaf.cadi.config.Config; public class Define { private static String ROOT_NS = null; private static String ROOT_COMPANY = null; + private static boolean initialized = false; private final static String MSG = ".set(Access access) must be called before use"; public static final CharSequence ROOT_NS_TAG = "AAF_NS"; // use for certain Replacements in Location @@ -67,7 +68,8 @@ public class Define { access.getProperties().setProperty(es.getKey().toString(),varReplace(es.getValue().toString())); } } - + + initialized = true; access.printf(Level.INIT,"AAF Root NS is %s, and AAF Company Root is %s",ROOT_NS,ROOT_COMPANY); } @@ -78,5 +80,9 @@ public class Define { return potential; } } + + public static boolean isInitialized() { + return initialized; + } } -- cgit 1.2.3-korg