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
Exceptionpublic static SCXML parse(URL url, List<CustomAction> customActions) throws Exception
Exceptionpublic static SCXML parse(Reader scxmlReader, List<CustomAction> customActions) throws Exception
Exceptionpublic static SCXMLExecutor getExecutor(URL url) throws Exception
Exceptionpublic static SCXMLExecutor getExecutor(String scxmlResource) throws Exception
Exceptionpublic static SCXMLExecutor getExecutor(SCXML scxml) throws Exception
Exceptionpublic static SCXMLExecutor getExecutor(URL url, Evaluator evaluator) throws Exception
Exceptionpublic static SCXMLExecutor getExecutor(SCXML scxml, Evaluator evaluator) throws Exception
Exceptionpublic static SCXMLExecutor getExecutor(SCXML scxml, Evaluator evaluator, EventDispatcher eventDispatcher) throws Exception
Exceptionpublic 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
Exceptionpublic static Set<EnterableState> fireEvent(SCXMLExecutor exec, String name) throws Exception
Exceptionpublic static Set<EnterableState> fireEvent(SCXMLExecutor exec, String name, Object payload) throws Exception
Exceptionpublic static Set<EnterableState> fireEvent(SCXMLExecutor exec, TriggerEvent te) throws Exception
Exceptionpublic static Set<EnterableState> fireEvents(SCXMLExecutor exec, TriggerEvent[] evts) throws Exception
Exceptionpublic static void assertPostTriggerState(SCXMLExecutor exec, String triggerEventName, String expectedStateId) throws Exception
Exceptionpublic static void assertPostTriggerState(SCXMLExecutor exec, String triggerEventName, Object payload, String expectedStateId) throws Exception
Exceptionpublic static void assertPostTriggerStates(SCXMLExecutor exec, String triggerEventName, String[] expectedStateIds) throws Exception
Exceptionpublic static void assertPostTriggerStates(SCXMLExecutor exec, String triggerEventName, Object payload, String[] expectedStateIds) throws Exception
Exceptionpublic static void assertPostTriggerState(SCXMLExecutor exec, TriggerEvent triggerEvent, String expectedStateId) throws Exception
Exceptionpublic static void assertPostTriggerStates(SCXMLExecutor exec, TriggerEvent triggerEvent, String[] expectedStateIds) throws Exception
Exceptionpublic static SCXML testModelSerializability(SCXML scxml) throws Exception
Exceptionpublic static SCXMLExecutor testInstanceSerializability(SCXMLExecutor exec) throws Exception
Exceptionpublic static Document stringToXMLDocument(String xml)
Document.xml - The XML source as a String.Document.Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.