|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jmock.core.VerifyingTestCase
org.jmock.core.MockObjectSupportTestCase
org.jmock.MockObjectTestCase
com.thoughtworks.xjb.cmt.TransactionMockingTestCase
| Field Summary | |
protected static java.lang.String |
commitUnlessRollbackOnly
|
protected static java.lang.String |
createTransaction
|
protected TransactionFactory |
factory
|
protected org.jmock.Mock |
factoryMock
|
protected TransactionFactory |
otherFactory
|
protected org.jmock.Mock |
otherFactoryMock
|
protected org.jmock.Mock |
otherTransactionMock
|
protected static java.lang.String |
rollback
|
protected org.jmock.Mock |
transactionMock
|
| Fields inherited from class org.jmock.core.MockObjectSupportTestCase |
ANYTHING, NOT_NULL, NULL |
| Constructor Summary | |
TransactionMockingTestCase()
|
|
| Method Summary | |
protected Transaction |
currentTransaction()
Get current singleton (ThreadLocal in real life) transaction |
protected void |
factoryMockWillReturnTransactionMock()
Set up factoryMock to return transactionMock for factory.getTransaction() |
protected void |
installMockTransactionAsCurrentTransaction()
|
protected void |
otherFactoryMockWillReturnOtherTransactionMock()
|
void |
setUp()
|
| Methods inherited from class org.jmock.MockObjectTestCase |
atLeastOnce, defaultMockNameForType, mock, mock, never, newCoreMock, once, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, throwException |
| Methods inherited from class org.jmock.core.MockObjectSupportTestCase |
and, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, isA, newDummy, newDummy, newDummy, not, or, same, stringContains |
| Methods inherited from class org.jmock.core.VerifyingTestCase |
registerToVerify, runBare, unregisterToVerify, verify |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runTest, setName, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final java.lang.String createTransaction
protected static final java.lang.String commitUnlessRollbackOnly
protected static final java.lang.String rollback
protected org.jmock.Mock transactionMock
protected org.jmock.Mock factoryMock
protected TransactionFactory factory
protected org.jmock.Mock otherTransactionMock
protected org.jmock.Mock otherFactoryMock
protected TransactionFactory otherFactory
| Constructor Detail |
public TransactionMockingTestCase()
| Method Detail |
public void setUp()
throws java.lang.Exception
java.lang.Exceptionprotected void factoryMockWillReturnTransactionMock()
protected Transaction currentTransaction()
protected void installMockTransactionAsCurrentTransaction()
protected void otherFactoryMockWillReturnOtherTransactionMock()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||