public class SCXMLTestHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZATION_DIR
Serialized Commons SCXML object model temporary store.
|
static String |
SERIALIZATION_FILE_PREFIX |
static String |
SERIALIZATION_FILE_SUFFIX |
public static final String SERIALIZATION_DIR
public static final String SERIALIZATION_FILE_PREFIX
public static final String SERIALIZATION_FILE_SUFFIX
public static URL getResource(String name)
public static SCXML parse(String scxmlResource, List<CustomAction> customActions) throws Exception
Exception
public static SCXML parse(URL url, List<CustomAction> customActions) throws Exception
Exception
public static SCXML parse(Reader scxmlReader, List<CustomAction> customActions) throws Exception
Exception
public static SCXMLExecutor getExecutor(URL url) throws Exception
Exception
public static SCXMLExecutor getExecutor(String scxmlResource) throws Exception
Exception
public static SCXMLExecutor getExecutor(SCXML scxml) throws Exception
Exception
public static SCXMLExecutor getExecutor(URL url, Evaluator evaluator) throws Exception
Exception
public static SCXMLExecutor getExecutor(SCXML scxml, Evaluator evaluator) throws Exception
Exception
public static SCXMLExecutor getExecutor(SCXML scxml, Evaluator evaluator, EventDispatcher eventDispatcher) throws Exception
Exception
public static TransitionTarget lookupTransitionTarget(SCXMLExecutor exec, String id)
public static Context lookupContext(SCXMLExecutor exec, String id)
public static void assertState(SCXMLExecutor exec, String expectedStateId) throws Exception
Exception
public static Set<EnterableState> fireEvent(SCXMLExecutor exec, String name) throws Exception
Exception
public static Set<EnterableState> fireEvent(SCXMLExecutor exec, String name, Object payload) throws Exception
Exception
public static Set<EnterableState> fireEvent(SCXMLExecutor exec, TriggerEvent te) throws Exception
Exception
public static Set<EnterableState> fireEvents(SCXMLExecutor exec, TriggerEvent[] evts) throws Exception
Exception
public static void assertPostTriggerState(SCXMLExecutor exec, String triggerEventName, String expectedStateId) throws Exception
Exception
public static void assertPostTriggerState(SCXMLExecutor exec, String triggerEventName, Object payload, String expectedStateId) throws Exception
Exception
public static void assertPostTriggerStates(SCXMLExecutor exec, String triggerEventName, String[] expectedStateIds) throws Exception
Exception
public static void assertPostTriggerStates(SCXMLExecutor exec, String triggerEventName, Object payload, String[] expectedStateIds) throws Exception
Exception
public static void assertPostTriggerState(SCXMLExecutor exec, TriggerEvent triggerEvent, String expectedStateId) throws Exception
Exception
public static void assertPostTriggerStates(SCXMLExecutor exec, TriggerEvent triggerEvent, String[] expectedStateIds) throws Exception
Exception
public static SCXML testModelSerializability(SCXML scxml) throws Exception
Exception
public static SCXMLExecutor testInstanceSerializability(SCXMLExecutor exec) throws Exception
Exception
public static Document stringToXMLDocument(String xml)
Document
.xml
- The XML source as a String.Document
.Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.