use of com.adaptris.core.interceptor.ThrottlingInterceptor in project interlok by adaptris.
the class WorkflowManagerTest method testConstructor_WithInterceptor_NoRuntimeInfoFactoryRegistration.
@Test
public void testConstructor_WithInterceptor_NoRuntimeInfoFactoryRegistration() throws Exception {
String adapterName = this.getClass().getSimpleName() + "." + getName();
Adapter adapter = createAdapter(adapterName);
AdapterManager adapterManager = new AdapterManager(adapter);
Channel channel = createChannel("c1");
ChannelManager channelManager = new ChannelManager(channel, adapterManager);
StandardWorkflow workflow = createWorkflow("w1");
workflow.setDisableDefaultMessageCount(true);
workflow.getInterceptors().add(new ThrottlingInterceptor());
WorkflowManager workflowManager = new WorkflowManager(workflow, channelManager);
assertEquals(0, workflowManager.getChildRuntimeInfoComponents().size());
}
Aggregations