Package net.ex337.scriptus.config.ScriptusConfig

Examples of net.ex337.scriptus.config.ScriptusConfig.TransportType


        p.save();

        final ThreadLocal<String> tweetId = new ThreadLocal<String>();

        ScriptusFacade f = new ScriptusFacade(datastore, c, m, config) {

            @Override
            public void registerMessageCorrelation(MessageCorrelation cid) {
                tweetId.set(cid.getMessageId());
                super.registerMessageCorrelation(cid);
View Full Code Here


        p.save();

//        final ThreadLocal<String> tweetId = new ThreadLocal<String>();

        ScriptusFacade f = new ScriptusFacade(datastore, c, m, config) {

            @Override
            public void registerMessageCorrelation(MessageCorrelation cid) {
//                tweetId.set(cid.getMessageId());
                super.registerMessageCorrelation(cid);
View Full Code Here

    p.save();

    Get g = (Get) r;
   
    g.visit(new ScriptusFacade(datastore, c, m, conf), p);
   
    p = datastore.getProcess(p.getPid());
   
    assertTrue("got content", p.getState() instanceof String);
   
View Full Code Here

       
        assertTrue("Correct result", r instanceof NormalTermination);
       
        NormalTermination n = (NormalTermination) r;

        r.visit(new ScriptusFacade(datastore, c, m, conf), p); //sould say

        assertEquals("Correct result", "result", n.getResult());
       
    }
View Full Code Here

       
        assertTrue("Correct result", r instanceof NormalTermination);
       
        NormalTermination n = (NormalTermination) r;

        r.visit(new ScriptusFacade(datastore, c, m, conf), p); //sould say

        assertEquals("Correct result", "aaarghs", n.getResult());
       
    }
View Full Code Here

   
    assertTrue("Correct result", r instanceof NormalTermination);
   
    NormalTermination n = (NormalTermination) r;

    r.visit(new ScriptusFacade(datastore, c, m, conf), p); //sould say

    assertEquals("Correct result", "result", n.getResult());
   
  }
View Full Code Here

   
    assertTrue("Correct result", r instanceof Say);
   
    p.save();

    r.visit(new ScriptusFacade(datastore, c, m, conf) {

        @Override
      public void execute(UUID pid) {
        ScriptProcess pp = datastore.getProcess(pid);
        ScriptAction rr = pp.call();
View Full Code Here

  }

  @Override
  protected void setUp() throws Exception {
     
      ScriptusConfig c = new ScriptusConfig();
      c.init();
     
//      System.setProperty("DatastoreType", c.getDatastoreType().toString());

      appContext = new ClassPathXmlApplicationContext(new String[]{getConfigFile()}, false);
      appContext.getEnvironment().getPropertySources().addFirst(c.new ScriptusConfigPropertySource("ScriptusConfig", c));
View Full Code Here

       
    }
 
  public void test_encryptDecrypt() throws IOException {
   
      ScriptusConfig c = (ScriptusConfig) appContext.getBean("config");
   
      String s = UUID.randomUUID().toString();
     
      String k = c.getLatestKeyId();
     
      assertEquals("latest key chosen", "999999999999", k);
     
      byte[] ct = c.encrypt(s, k);
     
      String pt = c.decrypt(ct, k);
     
      assertEquals("encrypt-decrypt OK", s, pt);
   
  }
View Full Code Here

      String args = req.getParameter("args");
      String owner = req.getParameter("owner");
     
      boolean sample = Boolean.TRUE.toString().equalsIgnoreCase(req.getParameter("sample"));
     
      TransportType t = TransportType.valueOf(req.getParameter("transport"));
     
      s.executeNewProcess(openid, script, sample, args, owner, t);

      resp.sendRedirect("list");
      return;
View Full Code Here

TOP

Related Classes of net.ex337.scriptus.config.ScriptusConfig.TransportType

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.