diff options
author | Tomek Kaminski <tomasz.kaminski@nokia.com> | 2018-07-18 14:25:02 +0200 |
---|---|---|
committer | Tomasz Kaminski <tomasz.kaminski@nokia.com> | 2018-07-23 22:27:27 +0000 |
commit | 9a1e2ee858f1a937e12bdb6920296b277787c27f (patch) | |
tree | 159ad4cf2788ecbe7c38408a091684cef938e9b1 /auth/auth-core/src | |
parent | 647c1c3a8b370cf4fe2dea4160711d5a2f2ef05f (diff) |
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 <tomasz.kaminski@nokia.com>
Diffstat (limited to 'auth/auth-core/src')
-rw-r--r-- | auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java | 8 |
1 files changed, 7 insertions, 1 deletions
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; + } } |