assertNull(testExecution.throwable());
assertTrue(testExecution.mustSkip());
assertEquals(flow, asList("prepare", "before", "beforeTest", "method1", "afterTest", "after", "before", "beforeTest", "method2", "afterTest", "after", "before", "beforeTest", "afterTest"), flow.toString());
} else if (testExecution.method().getName().equals("method4")) {
assertNotNull(testExecution.throwable());
assertThrow(AssertionError.class).withMessage("METHOD 4 ERROR").whenRunning(new Code() {
public void run() throws Throwable {
throw testExecution.throwable();
}
});
assertEquals(flow, asList("prepare", "before", "beforeTest", "method1", "afterTest", "after", "before", "beforeTest", "method2", "afterTest", "after", "before", "beforeTest", "afterTest", "after", "before", "beforeTest", "method4", "afterTest"), flow.toString());