|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Assert org.jboss.portal.common.junit.TransactionAssert
Nested Class Summary | |
static class |
TransactionAssert.Terminator
|
Field Summary | |
static TransactionAssert.Terminator |
MARKED_AS_ROLLBACK
. |
static TransactionAssert.Terminator |
MUST_COMMIT
. |
static TransactionAssert.Terminator |
MUST_ROLLBACK
. |
static TransactionAssert.Terminator |
NONE
. |
private static java.lang.String[] |
STATUS_NAMES
|
Constructor Summary | |
TransactionAssert()
|
Method Summary | |
static void |
assertStatusEquals(int expectedStatus)
Assert the status of the current transaction. |
static void |
beginTransaction()
Begin a transaction or fail. |
static void |
commitTransaction()
Commit the transaction or fail. |
static java.lang.String |
decodeStatus(int status)
Decode the status name. |
static int |
endTransaction()
If no transaction do nothing. |
static int |
endTransaction(TransactionAssert.Terminator expectedTerminator)
If no transaction do nothing. |
static javax.transaction.UserTransaction |
getUserTransaction()
|
static void |
rollbackTransaction()
Rollback the transaction or fail. |
static void |
rollbackTransaction(boolean marked)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String[] STATUS_NAMES
public static final TransactionAssert.Terminator NONE
public static final TransactionAssert.Terminator MARKED_AS_ROLLBACK
public static final TransactionAssert.Terminator MUST_COMMIT
public static final TransactionAssert.Terminator MUST_ROLLBACK
Constructor Detail |
public TransactionAssert()
Method Detail |
public static java.lang.String decodeStatus(int status)
status
- the status value
public static void assertStatusEquals(int expectedStatus)
expectedStatus
- the expected statuspublic static void commitTransaction()
public static void rollbackTransaction()
public static void rollbackTransaction(boolean marked)
public static void beginTransaction()
public static int endTransaction()
public static int endTransaction(TransactionAssert.Terminator expectedTerminator)
public static javax.transaction.UserTransaction getUserTransaction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |