tasks.add(t2);
MockControl logControl = newControl(Log.class);
Log log = (Log) logControl.getMock();
TaskExecutor e = new TaskExecutor();
ErrorLog errorLog = (ErrorLog) newMock(ErrorLog.class);
e.setErrorLog(errorLog);
e.setLog(log);
e.setMessages(getMessages());
e.setTasks(tasks);
// Note the ordering; explicitly set, to check that ordering does
// take place.
log.info("Executing task Fixture #2.");
log.info("Executing task Fixture #1.");
log.info("Executed 2 tasks \\(in \\d+ milliseconds\\)\\.");
logControl.setMatcher(new RegexpMatcher());
replayControls();
e.run();
assertListsEqual(new String[]
{ "f2", "f1" }, _tokens);
verifyControls();