diff options
author | 2017-08-31 15:16:38 -0400 | |
---|---|---|
committer | 2017-08-31 15:42:50 -0400 | |
commit | 7f535078ef80a7b7efa3e3325bfccb994fbd00e8 (patch) | |
tree | 66d908df2eb7cf0b048f754eac6b44619255eb8a /ecomp-sdk/epsdk-app-common/src/test/java/org/onap/portalapp/workflow | |
parent | 224487bc124df7988442a60d72d4aa106697306b (diff) |
Rename packages to org.onap in 1.4.0-SNAPSHOT
19 - remove openecomp
72 - remediate Sonar scan issues
79 - removed unwanted left menu under Report
90 - apply approved license text
Issue: PORTAL-19, PORTAL-72, PORTAL-79, PORTAL-90
Change-Id: I41a0ef5fba623d2242574bd15f2d9fb8029a496c
Signed-off-by: Christopher Lott (cl778h) <clott@research.att.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-common/src/test/java/org/onap/portalapp/workflow')
-rw-r--r-- | ecomp-sdk/epsdk-app-common/src/test/java/org/onap/portalapp/workflow/services/WorkflowScheduleServiceTest.java | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-app-common/src/test/java/org/onap/portalapp/workflow/services/WorkflowScheduleServiceTest.java b/ecomp-sdk/epsdk-app-common/src/test/java/org/onap/portalapp/workflow/services/WorkflowScheduleServiceTest.java new file mode 100644 index 00000000..c59619d2 --- /dev/null +++ b/ecomp-sdk/epsdk-app-common/src/test/java/org/onap/portalapp/workflow/services/WorkflowScheduleServiceTest.java @@ -0,0 +1,44 @@ +package org.onap.portalapp.workflow.services; + +import java.util.Calendar; + +import org.junit.Assert; +import org.junit.Test; +import org.onap.portalapp.core.MockApplicationContextTestSuite; +import org.onap.portalsdk.workflow.domain.WorkflowSchedule; +import org.onap.portalsdk.workflow.services.WorkflowScheduleService; +import org.springframework.beans.factory.annotation.Autowired; + + + +public class WorkflowScheduleServiceTest extends MockApplicationContextTestSuite { + + @Autowired + WorkflowScheduleService service; +// @Autowired +// SchedulerFactoryBean schedulerBean; + + @Test + public void testFire() { + + // List<WorkflowSchedule> wfs = service.findAll(); + + final WorkflowSchedule ws = new WorkflowSchedule(); + ws.setId(999L); + ws.setWorkflowKey("test"); + ws.setCronDetails("0 38 13 3 5 ? 2016"); + final Calendar instance = Calendar.getInstance(); + instance.add(Calendar.YEAR, 3); + ws.setEndDateTime(instance.getTime()); + + ws.setStartDateTime(Calendar.getInstance().getTime()); + try{ + service.saveWorkflowSchedule(ws); + Assert.assertTrue(true); + } catch(Exception e) { + Assert.fail(e.getMessage()); + } + + } + +} |