Examples of BackChannelQueue


Examples of de.scoopgmbh.copper.test.backchannel.BackChannelQueue

  @Test
  public void testWorkflow() throws Exception {
    final ConfigurableApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"transient-engine-application-context.xml", "SimpleTransientEngineTest-application-context.xml"});
    final TransientScottyEngine engine = (TransientScottyEngine) context.getBean("transientEngine");
    final BackChannelQueue backChannelQueue = context.getBean(BackChannelQueue.class);
   
    assertEquals(EngineState.STARTED,engine.getEngineState());
   
    try {
      engine.run("de.scoopgmbh.copper.test.tranzient.simple.SimpleTestParentWorkflow","testData");
      WorkflowResult r = backChannelQueue.dequeue(2000, TimeUnit.MILLISECONDS);
      assertNotNull(r);
    }
    finally {
      context.close();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.