summaryrefslogtreecommitdiffstats
path: root/common-app-api/src
diff options
context:
space:
mode:
Diffstat (limited to 'common-app-api/src')
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/kpi/api/ASDCKpiApiTest.java53
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/listener/AppContextListenerTest.java43
2 files changed, 96 insertions, 0 deletions
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/kpi/api/ASDCKpiApiTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/kpi/api/ASDCKpiApiTest.java
new file mode 100644
index 0000000000..fa86708eb2
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/kpi/api/ASDCKpiApiTest.java
@@ -0,0 +1,53 @@
+package org.openecomp.sdc.common.kpi.api;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+
+
+public class ASDCKpiApiTest {
+
+ private ASDCKpiApi createTestSubject() {
+ return new ASDCKpiApi();
+ }
+
+
+ @Test
+ public void testCountImportResourcesKPI() throws Exception {
+
+ // default test
+ ASDCKpiApi.countImportResourcesKPI();
+ }
+
+
+ @Test
+ public void testCountCreatedResourcesKPI() throws Exception {
+
+ // default test
+ ASDCKpiApi.countCreatedResourcesKPI();
+ }
+
+
+ @Test
+ public void testCountCreatedServicesKPI() throws Exception {
+
+ // default test
+ ASDCKpiApi.countCreatedServicesKPI();
+ }
+
+
+ @Test
+ public void testCountUsersAuthorizations() throws Exception {
+
+ // default test
+ ASDCKpiApi.countUsersAuthorizations();
+ }
+
+
+ @Test
+ public void testCountActivatedDistribution() throws Exception {
+
+ // default test
+ ASDCKpiApi.countActivatedDistribution();
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/listener/AppContextListenerTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/listener/AppContextListenerTest.java
new file mode 100644
index 0000000000..a9936adae5
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/listener/AppContextListenerTest.java
@@ -0,0 +1,43 @@
+package org.openecomp.sdc.common.listener;
+
+import java.util.Map;
+
+import javax.annotation.Generated;
+import javax.servlet.ServletContext;
+import javax.servlet.ServletContextEvent;
+
+import org.junit.Test;
+
+
+public class AppContextListenerTest {
+
+ private AppContextListener createTestSubject() {
+ return new AppContextListener();
+ }
+
+
+
+
+
+ @Test
+ public void testContextDestroyed() throws Exception {
+ AppContextListener testSubject;
+ ServletContextEvent context = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.contextDestroyed(context);
+ }
+
+
+
+
+// @Test
+ public void testGetManifestInfo() throws Exception {
+ ServletContext application = null;
+ Map<String, String> result;
+
+ // default test
+ result = AppContextListener.getManifestInfo(application);
+ }
+} \ No newline at end of file