Search in sources :

Example 16 with WorkflowList

use of com.adaptris.core.WorkflowList in project interlok by adaptris.

the class WorkflowLifecycleStrategyCase method testStop.

@Test
public void testStop() throws Exception {
    WorkflowList wfl = new WorkflowList();
    wfl.add(createWorkflow(idGenerator.create(wfl)));
    wfl.setLifecycleStrategy(createStrategy());
    Channel c = createChannel(wfl);
    c.requestStart();
    c.requestStop();
}
Also used : WorkflowList(com.adaptris.core.WorkflowList) MockChannel(com.adaptris.core.stubs.MockChannel) Channel(com.adaptris.core.Channel) Test(org.junit.Test)

Aggregations

WorkflowList (com.adaptris.core.WorkflowList)16 Test (org.junit.Test)16 Channel (com.adaptris.core.Channel)12 TimeInterval (com.adaptris.util.TimeInterval)8 MockChannel (com.adaptris.core.stubs.MockChannel)4 CoreException (com.adaptris.core.CoreException)2