com.thoughtworks.xjb.cmt
Class TransactionalRemoteFactoryTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jmock.core.VerifyingTestCase
              extended byorg.jmock.core.MockObjectSupportTestCase
                  extended byorg.jmock.MockObjectTestCase
                      extended bycom.thoughtworks.xjb.cmt.TransactionalRemoteFactoryTest
All Implemented Interfaces:
junit.framework.Test

public class TransactionalRemoteFactoryTest
extends org.jmock.MockObjectTestCase

Author:
Dan North

Nested Class Summary
static interface TransactionalRemoteFactoryTest.DoesRollback
           
static class TransactionalRemoteFactoryTest.DoesRollbackBean
           
static interface TransactionalRemoteFactoryTest.Simple
           
static interface TransactionalRemoteFactoryTest.SimpleBean
           
 
Field Summary
 
Fields inherited from class org.jmock.core.MockObjectSupportTestCase
ANYTHING, NOT_NULL, NULL
 
Constructor Summary
TransactionalRemoteFactoryTest()
           
 
Method Summary
 void setUp()
           
 void testShouldCallTransactionPolicyHandlerAfterMethodEnds()
           
 void testShouldCallTransactionPolicyHandlerAfterMethodFails()
           
 void testShouldCallTransactionPolicyHandlerBeforeMethodStarts()
           
 void testShouldSetRollbackOnlyInTransactionWhenSetRollbackOnlyInvokedOnSessionContext()
           
 
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
 

Constructor Detail

TransactionalRemoteFactoryTest

public TransactionalRemoteFactoryTest()
Method Detail

setUp

public void setUp()

testShouldCallTransactionPolicyHandlerBeforeMethodStarts

public void testShouldCallTransactionPolicyHandlerBeforeMethodStarts()
                                                              throws java.lang.Exception
Throws:
java.lang.Exception

testShouldCallTransactionPolicyHandlerAfterMethodEnds

public void testShouldCallTransactionPolicyHandlerAfterMethodEnds()
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

testShouldCallTransactionPolicyHandlerAfterMethodFails

public void testShouldCallTransactionPolicyHandlerAfterMethodFails()
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

testShouldSetRollbackOnlyInTransactionWhenSetRollbackOnlyInvokedOnSessionContext

public void testShouldSetRollbackOnlyInTransactionWhenSetRollbackOnlyInvokedOnSessionContext()
                                                                                      throws java.lang.Exception
Throws:
java.lang.Exception