Search in sources :

Example 1 with WorkflowList

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

the class WorkflowLifecycleStrategyCase method testInitNoStrategy.

@Test
public void testInitNoStrategy() throws Exception {
    WorkflowList wfl = new WorkflowList();
    wfl.add(createWorkflow(idGenerator.create(wfl)));
    createChannel(wfl).requestInit();
}
Also used : WorkflowList(com.adaptris.core.WorkflowList) Test(org.junit.Test)

Example 2 with WorkflowList

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

the class WorkflowLifecycleStrategyCase method testStopNoStrategy.

@Test
public void testStopNoStrategy() throws Exception {
    WorkflowList wfl = new WorkflowList();
    wfl.add(createWorkflow(idGenerator.create(wfl)));
    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)

Example 3 with WorkflowList

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

the class WorkflowLifecycleStrategyCase method testStart.

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

Example 4 with WorkflowList

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

the class WorkflowLifecycleStrategyCase method testCloseNoStrategy.

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

Example 5 with WorkflowList

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

the class WorkflowLifecycleStrategyCase method testClose.

@Test
public void testClose() throws Exception {
    WorkflowList wfl = new WorkflowList();
    wfl.add(createWorkflow(idGenerator.create(wfl)));
    wfl.setLifecycleStrategy(createStrategy());
    Channel c = createChannel(wfl);
    c.requestStart();
    c.requestClose();
}
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