From 8ca42156225a796069a0c0261b7de2eaae98b0e7 Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Fri, 18 Mar 2016 19:14:08 +0100 Subject: [PATCH] issue #139 --- .../jee/ejb/TestWorkflowScheduler.java | 39 ------------------- 1 file changed, 39 deletions(-) diff --git a/imixs-workflow-engine/src/test/java/org/imixs/workflow/jee/ejb/TestWorkflowScheduler.java b/imixs-workflow-engine/src/test/java/org/imixs/workflow/jee/ejb/TestWorkflowScheduler.java index c33fd54a7..68414b140 100644 --- a/imixs-workflow-engine/src/test/java/org/imixs/workflow/jee/ejb/TestWorkflowScheduler.java +++ b/imixs-workflow-engine/src/test/java/org/imixs/workflow/jee/ejb/TestWorkflowScheduler.java @@ -65,45 +65,6 @@ public void testDaysOnLastProcess() throws AccessDeniedException, ProcessingErro } - /** - * This test the date compare base on timWorkflowLastAccess in workdays - * - * @throws ProcessingErrorException - * @throws AccessDeniedException - * - */ - @Test - public void testWorkdaysOnLastProcess() throws AccessDeniedException, ProcessingErrorException, PluginException { - - ItemCollection doc = new ItemCollection(); - ItemCollection activity = new ItemCollection(); - - // delay unit = days - activity.replaceItemValue("keyActivityDelayUnit", "4"); - // compare type = last process - activity.replaceItemValue("keyScheduledBaseObject", "1"); - // delay - activity.replaceItemValue("numActivityDelay", 10); - - Calendar workitemCal = Calendar.getInstance(); - workitemCal.setTime(new Date()); - // adjust -14 - workitemCal.add(Calendar.DAY_OF_MONTH, -14); - // prepare doc - doc.replaceItemValue("timWorkflowLastAccess", workitemCal.getTime()); - Assert.assertTrue(WorkflowSchedulerService.workItemInDue(doc, activity)); - - // delay - activity.replaceItemValue("numActivityDelay", 15); - workitemCal.setTime(new Date()); - // adjust -14 - workitemCal.add(Calendar.DAY_OF_MONTH, -14); - // prepare doc - doc.replaceItemValue("timWorkflowLastAccess", workitemCal.getTime()); - Assert.assertFalse(WorkflowSchedulerService.workItemInDue(doc, activity)); - - } -