diff options
author | 2018-03-18 16:06:37 +0200 | |
---|---|---|
committer | 2018-03-18 16:06:37 +0200 | |
commit | 8fdf2dee7684f4911a58a2350626300af52b6e4d (patch) | |
tree | 656b4e847e097838f470a468c92aa7a1ebc282d6 /epsdk-app-onap/src/test/java/org/onap/portalapp/scheduler | |
parent | c9d63f49af5455f503ca63395121b7cd4d8c8c88 (diff) |
Unit tests
Change-Id: I9ff2a916f09856e3a79d037a8815224ddb9e7a9b
Issue-ID: VID-197
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'epsdk-app-onap/src/test/java/org/onap/portalapp/scheduler')
-rw-r--r-- | epsdk-app-onap/src/test/java/org/onap/portalapp/scheduler/RegisterTest.java | 39 | ||||
-rw-r--r-- | epsdk-app-onap/src/test/java/org/onap/portalapp/scheduler/RegistryAdapterTest.java | 75 |
2 files changed, 114 insertions, 0 deletions
diff --git a/epsdk-app-onap/src/test/java/org/onap/portalapp/scheduler/RegisterTest.java b/epsdk-app-onap/src/test/java/org/onap/portalapp/scheduler/RegisterTest.java new file mode 100644 index 000000000..8fed88c55 --- /dev/null +++ b/epsdk-app-onap/src/test/java/org/onap/portalapp/scheduler/RegisterTest.java @@ -0,0 +1,39 @@ +package org.onap.portalapp.scheduler; + +import java.util.List; + +import org.junit.Test; + +public class RegisterTest { + + private Register createTestSubject() { + return new Register(); + } + + @Test + public void testGetTriggers() throws Exception { + Register testSubject; + + // default test + testSubject = createTestSubject(); + testSubject.getTriggers(); + } + + @Test + public void testGetScheduleTriggers() throws Exception { + Register testSubject; + + // default test + testSubject = createTestSubject(); + testSubject.getScheduleTriggers(); + } + + @Test + public void testSetScheduleTriggers() throws Exception { + Register testSubject; + + // default test + testSubject = createTestSubject(); + testSubject.setScheduleTriggers(null); + } +}
\ No newline at end of file diff --git a/epsdk-app-onap/src/test/java/org/onap/portalapp/scheduler/RegistryAdapterTest.java b/epsdk-app-onap/src/test/java/org/onap/portalapp/scheduler/RegistryAdapterTest.java new file mode 100644 index 000000000..c685fb209 --- /dev/null +++ b/epsdk-app-onap/src/test/java/org/onap/portalapp/scheduler/RegistryAdapterTest.java @@ -0,0 +1,75 @@ +package org.onap.portalapp.scheduler; + +import java.util.List; + +import org.junit.Test; +import org.onap.portalsdk.core.scheduler.Registerable; +import org.onap.portalsdk.workflow.services.WorkflowScheduleService; +import org.springframework.scheduling.quartz.SchedulerFactoryBean; + +public class RegistryAdapterTest { + + private RegistryAdapter createTestSubject() { + return new RegistryAdapter(); + } + + @Test + public void testSetSchedulerBean() throws Exception { + RegistryAdapter testSubject; + SchedulerFactoryBean schedulerBean = null; + + // default test + testSubject = createTestSubject(); + testSubject.setSchedulerBean(schedulerBean); + } + + @Test + public void testGetSchedulerBean() throws Exception { + RegistryAdapter testSubject; + SchedulerFactoryBean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSchedulerBean(); + } + + @Test + public void testGetRegistry() throws Exception { + RegistryAdapter testSubject; + Registerable result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRegistry(); + } + + @Test + public void testSetRegistry() throws Exception { + RegistryAdapter testSubject; + Registerable registry = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRegistry(registry); + } + + @Test + public void testGetWorkflowScheduleService() throws Exception { + RegistryAdapter testSubject; + WorkflowScheduleService result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getWorkflowScheduleService(); + } + + @Test + public void testSetWorkflowScheduleService() throws Exception { + RegistryAdapter testSubject; + WorkflowScheduleService workflowScheduleService = null; + + // default test + testSubject = createTestSubject(); + testSubject.setWorkflowScheduleService(workflowScheduleService); + } +}
\ No newline at end of file |