root = model.getRoot();
model.addDebugStatisticsModelListener(listener);
}
public void testThatHandlersAreCalledInSequence() {
final StatisticsEvent event = mockery.mock(StatisticsEvent.class);
final Sequence seq = mockery.sequence("handlers");
mockery.checking(new Expectations() {{
allowing(handler1).handle(model, event); will(returnValue(false)); inSequence(seq);
allowing(handler2).handle(model, event); will(returnValue(false)); inSequence(seq);
allowing(handler3).handle(model, event); will(returnValue(false)); inSequence(seq);