from = null;
transition = null;
}
public void testAbstractSCXMLListener0() {
SCXMLListener listener0 = new AbstractSCXMLListener() {
/**
* @see SCXMLListener#onEntry(TransitionTarget)
*/
public void onEntry(TransitionTarget state) {
heardOnEntry = true;
}
/**
* @see SCXMLListener#onExit(TransitionTarget)
*/
public void onExit(TransitionTarget state) {
heardOnExit = true;
}
/**
* @see SCXMLListener#onTransition(TransitionTarget,TransitionTarget,Transition)
*/
public void onTransition(TransitionTarget from, TransitionTarget to,
Transition transition) {
heardOnTransition = true;
}
};
assertFalse("heardOnEntry == false", heardOnEntry);
assertFalse("heardOnExit == false", heardOnExit);
assertFalse("heardOnTransition == false", heardOnTransition);
listener0.onEntry(to);
listener0.onExit(to);
listener0.onTransition(from, to, transition);
assertTrue("heardOnEntry", heardOnEntry);
assertTrue("heardOnExit", heardOnExit);
assertTrue("heardOnExit", heardOnTransition);
}