Package org.speakright.core

Examples of org.speakright.core.TrailWrapper


 
  @Test public void ValidationFail()
  {
    ValFlow flow = new ValFlow("a");
    MyFlow flow2 = new MyFlow("b");
    TrailWrapper wrap1 = new TrailWrapper(flow);
    TrailWrapper wrap2 = new TrailWrapper(flow2);
   
    Flow2Wrapper flowBoth = new Flow2Wrapper("valwrap", wrap1, wrap2);
    TrailWrapper wrap3 = new TrailWrapper(flowBoth);
 
    SRInstance run = StartIt(wrap3);
    Proceed(run, "111");
   
    assertEquals("fail", false, run.isFailed());
View Full Code Here


  }
  @Test public void ValidationPass()
  {
    ValFlow flow = new ValFlow("a");
    MyFlow flow2 = new MyFlow("b");
    TrailWrapper wrap1 = new TrailWrapper(flow);
    TrailWrapper wrap2 = new TrailWrapper(flow2);
   
    Flow2Wrapper flowBoth = new Flow2Wrapper("valwrap", wrap1, wrap2);
    TrailWrapper wrap3 = new TrailWrapper(flowBoth);
 
    SRInstance run = StartIt(wrap3);
    Proceed(run, "222"); //a
    Proceed(run)//b
   
View Full Code Here

  }
  @Test public void AsyncTransaction()
  {
    AsyncFlow flow = new AsyncFlow("a");
    MyFlow flow2 = new MyFlow("b");
    TrailWrapper wrap1 = new TrailWrapper(flow);
    TrailWrapper wrap2 = new TrailWrapper(flow2);
   
    Flow2Wrapper flowBoth = new Flow2Wrapper("asyncwrap", wrap1, wrap2);
    TrailWrapper wrap3 = new TrailWrapper(flowBoth);
 
    SRInstance run = StartIt(wrap3);
    assertEquals("pause", false, run.isPaused());
    Proceed(run, "222");
    assertEquals("pause", true, run.isPaused());
View Full Code Here

public class TestAppWithLoop extends BaseTest {

  @Test public void Run()
  {
    AppWithLoop flow = new AppWithLoop();
    TrailWrapper wrap1 = new TrailWrapper(flow);
   
    SRInstance run = RunIt(wrap1);
//    assertEquals("fail", false, run.isFailed());
//    assertEquals("fin", true, run.isFinished());
//    assertEquals("start", true, run.isStarted());
View Full Code Here

  @Test public void Run()
  {
    log("----------testApp1zz----------------");
    App1 flow = new App1();
    TrailWrapper wrap1 = new TrailWrapper(flow);
   
    SRInstance run = StartIt(wrap1);
    Proceed(run, "id33");
    Proceed(run, "222");
    Proceed(run);
View Full Code Here

  }

  @Test public void RunAndRestart()
  {
    App1 flow = new App1();
    TrailWrapper wrap1 = new TrailWrapper(flow);
   
    SRInstance run = StartIt(wrap1);
    Proceed(run, "id33");
    Proceed(run, "222");
    Proceed(run);
View Full Code Here

public class TestSRApp extends BaseTest {

  @Test public void run()
  {
    TestApp1 flow = new TestApp1();
    TrailWrapper wrap1 = new TrailWrapper(flow);
   
    SRInstance run = RunIt(wrap1);
//    assertEquals("fail", false, run.isFailed());
//    assertEquals("fin", true, run.isFinished());
//    assertEquals("start", true, run.isStarted());
View Full Code Here

  }

  @Test public void appThatOverridesGetWelcome()
  {
    TestApp2 flow = new TestApp2();
    TrailWrapper wrap1 = new TrailWrapper(flow);
   
    SRInstance run = RunIt(wrap1);
//    assertEquals("fail", false, run.isFailed());
//    assertEquals("fin", true, run.isFinished());
//    assertEquals("start", true, run.isStarted());
View Full Code Here

  }
 
  @Test public void appWithGotoEvent()
  {
    TestApp3 flow = new TestApp3();
    TrailWrapper wrap1 = new TrailWrapper(flow);
   
    SRInstance run = RunIt(wrap1);
//    assertEquals("fail", false, run.isFailed());
//    assertEquals("fin", true, run.isFinished());
//    assertEquals("start", true, run.isStarted());
View Full Code Here

TOP

Related Classes of org.speakright.core.TrailWrapper

Copyright © 2018 www.massapicom. 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.