diff options
author | Michael Lando <ml636r@att.com> | 2017-10-22 13:29:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-10-22 13:29:02 +0000 |
commit | c7026576d55cce40fb9928616ab63f5a73663238 (patch) | |
tree | 9a90112917d93460b9a5477890c78f2a089edda8 /common-app-api | |
parent | 3f8f86a71ef0c5dcb03f9c944e2b6ee7abb9f474 (diff) | |
parent | 287481cb94f4ba0b72a520fba1e05daea95ba431 (diff) |
Merge "add more unit tests to BE components"
Diffstat (limited to 'common-app-api')
-rw-r--r-- | common-app-api/src/test/java/org/openecomp/sdc/common/kpi/api/ASDCKpiApiTest.java | 53 | ||||
-rw-r--r-- | common-app-api/src/test/java/org/openecomp/sdc/common/listener/AppContextListenerTest.java | 43 |
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 |