void () { List<? extends Action> actions = Arrays.asList(new AddText(), new RemoveText(), new ReplaceText(), new MoveText()); LOG.debug("Seed is " + mySeed); int i = 0; try { initText(""); for (i = 1; i <= ITERATIONS; i++) { doRandomAction(actions); checkConsistency(getEditor()); } } catch (Throwable t) { String message = "Failed when run with seed=" + mySeed + " in iteration " + i; System.err.println(message); throw new RuntimeException(message, t); } }