summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2020-02-28 09:42:16 +0000
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-03-16 13:29:42 +0000
commit71b9e84b987f2b1bb8981ddc4270bf15d5d5675b (patch)
tree9ec84bdabb5f7d67d61b0391f34a980ca2b00d04 /catalog-be/src/main
parent4654da998f4cd9390e2e1a02f4aa2bdf198893c0 (diff)
Fix broken unit tests in catalog-be
Change-Id: I9a90a219a6eaec832660e01a359f034060e803c3 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2783
Diffstat (limited to 'catalog-be/src/main')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResponseFormatManager.java8
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/aaf/RoleAuthorizationHandler.java2
2 files changed, 1 insertions, 9 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResponseFormatManager.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResponseFormatManager.java
index 27adf93516..2cb03fe2ed 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResponseFormatManager.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResponseFormatManager.java
@@ -39,14 +39,6 @@ public class ResponseFormatManager {
public static ResponseFormatManager getInstance() {
if (instance == null) {
-
- instance = init();
- }
- return instance;
- }
-
- private static synchronized ResponseFormatManager init() {
- if (instance == null) {
instance = new ResponseFormatManager();
configurationManager = ConfigurationManager.getConfigurationManager();
}
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/aaf/RoleAuthorizationHandler.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/aaf/RoleAuthorizationHandler.java
index 859872f5f3..b963cf6135 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/aaf/RoleAuthorizationHandler.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/aaf/RoleAuthorizationHandler.java
@@ -39,7 +39,7 @@ public class RoleAuthorizationHandler {
private static final Logger log = Logger.getLogger(RoleAuthorizationHandler.class);
- private ConfigurationManager configurationManager = ConfigurationManager.getConfigurationManager();
+ private final ConfigurationManager configurationManager = ConfigurationManager.getConfigurationManager();
@Before("@annotation(permissions)")
public void authorizeRole(JoinPoint joinPoint, PermissionAllowed permissions) {