Examples of SRInstance


Examples of org.speakright.core.SRInstance

    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
   
    assertEquals("fail", false, run.isFailed());
    assertEquals("fin", true, run.isFinished());
    ChkTrail(run, "a;b");
    ChkTrail(wrap1, "beg;F;E;N;T;end");
    ChkTrail(wrap2, "beg;F;E;N;T;end");
    ChkTrail(wrap3, "beg;F;N;N;T;end");
  }
View Full Code Here

Examples of org.speakright.core.SRInstance

    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());
    run.resume(); //finish a
    assertEquals("pause", false, run.isPaused());
    Proceed(run); //b
    assertEquals("pause", false, run.isPaused());
   
    assertEquals("fail", false, run.isFailed());
    assertEquals("fin", true, run.isFinished());
    ChkTrail(run, "a;b");
    ChkTrail(wrap1, "beg;F;E;N;T;end");
    ChkTrail(wrap2, "beg;F;E;N;T;end");
    ChkTrail(wrap3, "beg;F;N;N;T;end");
    System.out.println("---done async----");
View Full Code Here

Examples of org.speakright.core.SRInstance

  @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());
   
    ChkTrail(run, "a;e;f;e;f;e;f;b");
View Full Code Here

Examples of org.speakright.core.SRInstance

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

Examples of org.speakright.core.SRInstance

  @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);
    Proceed(run, "choice1");
    Proceed(run);
View Full Code Here

Examples of org.speakright.core.SRInstance

  @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());
   
    ChkTrail(run, "a;e;f;e;f;b");
View Full Code Here

Examples of org.speakright.core.SRInstance

  @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());
   
    ChkTrail(run, "a;e;f;e;f;b");
View Full Code Here

Examples of org.speakright.core.SRInstance

  @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());
   
    ChkTrail(run, "a;e;f;MM");
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.