com.thoughtworks.xjb.ejb
Class HomeFactoryTest

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.ejb.HomeFactoryTest
All Implemented Interfaces:
junit.framework.Test

public class HomeFactoryTest
extends org.jmock.MockObjectTestCase

Author:
Dan North

Nested Class Summary
static class HomeFactoryTest.BeanWithEjbCreate
           
static class HomeFactoryTest.FailingEjbCreateBean
           
static interface HomeFactoryTest.HomeWithCustomCreateMethod
           
static class HomeFactoryTest.ImplWithCustomCreateMethod
           
static class HomeFactoryTest.InaccessibleEjbCreateImpl
           
static class HomeFactoryTest.LocalContextImpl
           
static interface HomeFactoryTest.MultipleCreateHome
           
static class HomeFactoryTest.MultipleCreateImpl
           
static class HomeFactoryTest.SetSessionContextImpl
           
static interface HomeFactoryTest.Simple
           
static class HomeFactoryTest.SimpleBean
           
static interface HomeFactoryTest.SimpleHome
           
 
Field Summary
 
Fields inherited from class org.jmock.core.MockObjectSupportTestCase
ANYTHING, NOT_NULL, NULL
 
Constructor Summary
HomeFactoryTest()
           
 
Method Summary
 void testShouldCallAppropriateEjbCreateMethodForCreateXxxMethods()
           
 void testShouldCallEjbCreateMethodWithMatchingSignature()
           
 void testShouldCallEjbCreateWhenCreateCalledOnHomeInterface()
           
 void testShouldCallSetSessionContextBeforeEjbCreate()
           
 void testShouldConstructRemoteWithCorrectLocalContext()
           
 void testShouldCreateRemoteProxyToBeanImpl()
           
 void testShouldPropagateExceptionFromEjbCreate()
           
 void testShouldSupportEJBMetaData()
           
 void testShouldSupportEJBMetaDataForStatefulSessionBean()
           
 void testShouldThrowRemoteExceptionIfEjbCreateMethodIsNotAccessible()
           
 void testShouldUseSuppliedRemoteFactory()
           
 
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, setUp, 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

HomeFactoryTest

public HomeFactoryTest()
Method Detail

testShouldUseSuppliedRemoteFactory

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

testShouldCreateRemoteProxyToBeanImpl

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

testShouldCallEjbCreateWhenCreateCalledOnHomeInterface

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

testShouldPropagateExceptionFromEjbCreate

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

testShouldThrowRemoteExceptionIfEjbCreateMethodIsNotAccessible

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

testShouldCallEjbCreateMethodWithMatchingSignature

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

testShouldCallSetSessionContextBeforeEjbCreate

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

testShouldCallAppropriateEjbCreateMethodForCreateXxxMethods

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

testShouldSupportEJBMetaData

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

testShouldSupportEJBMetaDataForStatefulSessionBean

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

testShouldConstructRemoteWithCorrectLocalContext

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