367368369370371372373374375376377
State s21 = new State(); s21.setId("S21"); s2.addChild((TransitionTarget)s21); par.addChild((TransitionTarget)s1); par.addChild((TransitionTarget)s2); scxml.addChild(par); String assertValue = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
368369370371372373374375376377378
s21.setId("S21"); s2.addChild((TransitionTarget)s21); par.addChild((TransitionTarget)s1); par.addChild((TransitionTarget)s2); scxml.addChild(par); String assertValue = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<scxml xmlns=\"http://www.w3.org/2005/07/scxml\" "
145146147148149150151152153154155
State state1 = new State(); state1.setId("1"); State state2 = new State(); state2.setId("2"); parent.addChild(state1); parent.addChild(state2); parallel.setParent(parent); states.add(parallel);
146147148149150151152153154155156
state1.setId("1"); State state2 = new State(); state2.setId("2"); parent.addChild(state1); parent.addChild(state2); parallel.setParent(parent); states.add(parallel);
103104105106107108109110111112113
public void testComparatorSameParent() { State target1 = new State(); Parallel parent = new Parallel(); target1.setParent(parent); parent.addChild(target1); State target2 = new State(); target2.setParent(parent); parent.addChild(target2);
107108109110111112113114115116
target1.setParent(parent); parent.addChild(target1); State target2 = new State(); target2.setParent(parent); parent.addChild(target2); assertEquals(1, comparator.compare(target1, target2)); } }