Package net.ex337.scriptus.model.api.functions

Examples of net.ex337.scriptus.model.api.functions.Get.visit()


            assertTrue("Waited correctly", r2 instanceof Wait);

            //pause thread until child has termination
           
            r2.visit(this, p2);

          }

        }
       
View Full Code Here


            assertTrue("in child termination", r2 instanceof Termination);
           
            p2.save();
           
            r2.visit(this, p2);

          } else {
           
            executedChild.set(Boolean.TRUE);
           
View Full Code Here

            assertTrue("Waited correctly", r2 instanceof Wait);

            //pause thread until child has termination
           
            r2.visit(this, p2);
           
            //assert parent is still waiting
            //wake child and execute
            execute(childPid);
View Full Code Here

           
            p2.save();

            assertTrue("Killed correctly", r2 instanceof Kill);
           
            r2.visit(this, p2);

            boolean caughtNotFoundExcepton = false;
           
            try {
              datastore.getProcess(childPid);
View Full Code Here

    assertTrue("Asked correctly", r instanceof Ask);
    assertTrue("Asked correctly foo", ((Ask)r).getWho().equals("foo"));
   
    p.save();

    r.visit(new ScriptusFacade(datastore, c, m, conf), p);
   
  }

  public void test_defaultAsk() throws IOException {
View Full Code Here

    assertTrue("Asked correctly", r instanceof Ask);
    assertNull("Asked correctly owner", ((Ask)r).getWho());
   
    p.save();

    r.visit(new ScriptusFacade(datastore, c, m, conf), p);
   
  }


  public void test_askTimeout() throws IOException {
View Full Code Here

    assertTrue("Asked correctly", r instanceof Ask);
    assertTrue("Asked correctly owner", ((Ask)r).getWho().equals("foo"));
   
    p.save();

    r.visit(new ScriptusFacade(datastore, c, m, conf), p);
   
  }

  public void test_say() throws IOException {
View Full Code Here

    assertTrue("Said correctly to user", ((Say)r).getWho().equals("foo"));
    assertTrue("Said correctly message", ((Say)r).getMsg().equals("message"));
   
    p.save();
   
    r.visit(new ScriptusFacade(datastore, c, m, conf), p);
  }

  public void test_defaultSay() throws IOException {

    ScriptProcess p = datastore.newProcess(TEST_USER, "defaultSay.js", false, "", "owner", TransportType.Dummy);
View Full Code Here

    assertTrue("Listened correctly", r instanceof Listen);
    assertTrue("Listened correctly to", ((Listen)r).getWho().equals("foo"));
   
    p.save();
   
    r.visit(new ScriptusFacade(datastore, c, m, conf), p);
  }

  public void test_defaultListen() throws IOException {

    ScriptProcess p = datastore.newProcess(TEST_USER, "defaultListen.js", false, "", "owner", TransportType.Dummy);
View Full Code Here

    assertTrue("Listened correctly", r instanceof Listen);
    assertNull("Listened correctly to", ((Listen)r).getWho());
   
    p.save();
   
    r.visit(new ScriptusFacade(datastore, c, m, conf), p);
  }

  public void test_evalBroken() throws IOException {
   
    ScriptProcess p = datastore.newProcess(TEST_USER, "evalBroken.js", false, "", "owner", TransportType.Dummy);
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.