/** * Exits the current JUnit test context. * * @throws ClassCastException if the current context is not a JUnit context. */ public static void exit() { Context.exit(JUnitContext.class); }
/** * Enters a JUnit test context. This context raises a <code>junit.framework.AssertionFailedError * </code> if an assert fails. */ public static void enter() { Context.enter(JUnitContext.class); }