1 package org.sapia.soto.state; 2 3 import junit.framework.TestCase; 4 5 import org.sapia.soto.SotoContainer; 6 7 8 16 public class ConfigTest extends TestCase { 17 public ConfigTest(String name) { 18 super(name); 19 } 20 21 public void testLoad() throws Exception { 22 SotoContainer cont = new SotoContainer(); 23 cont.load("org/sapia/soto/state/stateLoadTest.xml"); 24 cont.start(); 25 26 ContextImpl ctx = new ContextImpl(); 27 MapScope scope = new MapScope(); 28 ctx.addScope("request", scope); 29 scope.put("key", "value"); 30 31 StateMachineService svc = (StateMachineService) cont.lookup("test"); 32 svc.execute("state1", null, ctx); 33 } 34 } 35 | Popular Tags |