183184185186187188189190191192193
assertTrue(returnBoolean); assertEquals(actualValue, returnValue.toString()); } public void testSerializeActionsElse() { Else elseValue = new Else(); List values = new ArrayList(); values.add(elseValue); String actualValue = " <else/>\n";
245246247248249250251252253254255
public void testSerializeOnEntry() { TransitionTarget target = new State(); OnEntry onEntry = new OnEntry(); onEntry.addAction(new Else()); target.setOnEntry(onEntry); String actualValue = " <onentry>\n <else/>\n </onentry>\n";
273274275276277278279280281282283
public void testSerializeOnExit() { TransitionTarget target = new State(); OnExit onExit = new OnExit(); onExit.addAction(new Else()); target.setOnExit(onExit); String actualValue = " <onexit>\n <else/>\n </onexit>\n";
184185186187188189190191192193194
246247248249250251252253254255256
274275276277278279280281282283284
208209210211212213214215216217218
270271272273274275276277278279280
298299300301302303304305306307308