aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main
diff options
context:
space:
mode:
authorDmitry Puzikov <d.puzikov2@partner.samsung.com>2020-03-24 18:22:03 +0100
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-03-25 13:58:20 +0000
commitbca8dd9ac181bde35c9f89766e86855d9ddd2102 (patch)
tree678cda121c50186eab5c2493c86724f27e0fde78 /catalog-be/src/main
parentcb10a6cc9f65ef69c3c8a29a9ea3312adfe814e4 (diff)
Fix unit tests
Add asserts where required, fix tiny issues. Replace getters-setters with Lombok annotations. Change-Id: Icb1a20f400fd8732a3d0ae23b8fe88bc693df1f5 Issue-ID: SDC-2853 Signed-off-by: Dmitry Puzikov <d.puzikov2@partner.samsung.com>
Diffstat (limited to 'catalog-be/src/main')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/impl/ServletUtils.java18
1 files changed, 5 insertions, 13 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/impl/ServletUtils.java b/catalog-be/src/main/java/org/openecomp/sdc/be/impl/ServletUtils.java
index 9687a4084a..70bfd60751 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/impl/ServletUtils.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/impl/ServletUtils.java
@@ -21,28 +21,20 @@
package org.openecomp.sdc.be.impl;
import com.google.gson.Gson;
+import lombok.Getter;
import org.openecomp.sdc.be.user.UserBusinessLogic;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
@Component("servletUtils")
+@Getter
public class ServletUtils {
@Resource
private ComponentsUtils componentsUtils;
- private Gson gson = new Gson();
- @Resource
- private UserBusinessLogic adminManager;
-
- public ComponentsUtils getComponentsUtils() {
- return componentsUtils;
- }
- public Gson getGson() {
- return gson;
- }
+ private Gson gson = new Gson();
- public UserBusinessLogic getUserAdmin() {
- return adminManager;
- }
+ @Resource
+ private UserBusinessLogic userAdmin;
}