/** * Flag the current test-managed transaction for <em>commit</em>. * <p>Invoking this method will <em>not</em> end the current transaction. * Rather, the value of this flag will be used to determine whether or not * the current test-managed transaction should be rolled back or committed * once it is {@linkplain #end ended}. * @throws IllegalStateException if no transaction is active for the current test * @see #isActive() * @see #isFlaggedForRollback() * @see #start() * @see #end() */ public static void flagForCommit() { setFlaggedForRollback(false); }
/** * Flag the current test-managed transaction for <em>rollback</em>. * <p>Invoking this method will <em>not</em> end the current transaction. * Rather, the value of this flag will be used to determine whether or not * the current test-managed transaction should be rolled back or committed * once it is {@linkplain #end ended}. * @throws IllegalStateException if no transaction is active for the current test * @see #isActive() * @see #isFlaggedForRollback() * @see #start() * @see #end() */ public static void flagForRollback() { setFlaggedForRollback(true); }
/** * Flag the current test-managed transaction for <em>rollback</em>. * <p>Invoking this method will <em>not</em> end the current transaction. * Rather, the value of this flag will be used to determine whether or not * the current test-managed transaction should be rolled back or committed * once it is {@linkplain #end ended}. * @throws IllegalStateException if no transaction is active for the current test * @see #isActive() * @see #isFlaggedForRollback() * @see #start() * @see #end() */ public static void flagForRollback() { setFlaggedForRollback(true); }
/** * Flag the current test-managed transaction for <em>rollback</em>. * <p>Invoking this method will <em>not</em> end the current transaction. * Rather, the value of this flag will be used to determine whether or not * the current test-managed transaction should be rolled back or committed * once it is {@linkplain #end ended}. * @throws IllegalStateException if no transaction is active for the current test * @see #isActive() * @see #isFlaggedForRollback() * @see #start() * @see #end() */ public static void flagForRollback() { setFlaggedForRollback(true); }
/** * Flag the current test-managed transaction for <em>commit</em>. * <p>Invoking this method will <em>not</em> end the current transaction. * Rather, the value of this flag will be used to determine whether or not * the current test-managed transaction should be rolled back or committed * once it is {@linkplain #end ended}. * @throws IllegalStateException if no transaction is active for the current test * @see #isActive() * @see #isFlaggedForRollback() * @see #start() * @see #end() */ public static void flagForCommit() { setFlaggedForRollback(false); }
/** * Flag the current test-managed transaction for <em>commit</em>. * <p>Invoking this method will <em>not</em> end the current transaction. * Rather, the value of this flag will be used to determine whether or not * the current test-managed transaction should be rolled back or committed * once it is {@linkplain #end ended}. * @throws IllegalStateException if no transaction is active for the current test * @see #isActive() * @see #isFlaggedForRollback() * @see #start() * @see #end() */ public static void flagForCommit() { setFlaggedForRollback(false); }