com.thoughtworks.xjb.config.ejbjar
Class EjbJarParserTest

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.config.ejbjar.EjbJarParserTest
All Implemented Interfaces:
junit.framework.Test

public class EjbJarParserTest
extends org.jmock.MockObjectTestCase

Author:
Dan North

Nested Class Summary
static class EjbJarParserTest.AnotherBean
           
static class EjbJarParserTest.FirstCircularBean
           
static class EjbJarParserTest.SecondCircularBean
           
static interface EjbJarParserTest.Simple
           
static class EjbJarParserTest.SimpleBean
           
static interface EjbJarParserTest.SimpleHome
           
 
Field Summary
 
Fields inherited from class org.jmock.core.MockObjectSupportTestCase
ANYTHING, NOT_NULL, NULL
 
Constructor Summary
EjbJarParserTest()
           
 
Method Summary
 void setUp()
           
 void testShouldConfigureEnvEntries()
           
 void testShouldConfigureMultipleSessionBeans()
           
 void testShouldConfigureStatefulSessionBean()
           
 void testShouldConfigureStatelessSessionBean()
           
 void testShouldMapBeanToCommonJndiNames()
           
 void testShouldResolveCircularEjbLinksFromDifferentEjbJarXmlFiles()
           
 void testShouldResolveEjbLinkReferencesIntoLocalContext()
           
 void testShouldResolveResourceReferencesIntoLocalContext()
           
 void testShouldThrowRemoteExceptionIfEjbClassCannotBeResolved()
           
 void testShouldThrowRemoteExceptionIfHomeInterfaceCannotBeResolved()
           
 void testShouldThrowRemoteExceptionIfRemoteInterfaceCannotBeResolved()
           
 void testShouldThrowRemoteExceptionIfUnableToResolveResourceReference()
           
 
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

EjbJarParserTest

public EjbJarParserTest()
Method Detail

setUp

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

testShouldConfigureStatelessSessionBean

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

testShouldMapBeanToCommonJndiNames

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

testShouldConfigureStatefulSessionBean

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

testShouldThrowRemoteExceptionIfHomeInterfaceCannotBeResolved

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

testShouldThrowRemoteExceptionIfRemoteInterfaceCannotBeResolved

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

testShouldThrowRemoteExceptionIfEjbClassCannotBeResolved

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

testShouldConfigureEnvEntries

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

testShouldConfigureMultipleSessionBeans

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

testShouldResolveResourceReferencesIntoLocalContext

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

testShouldThrowRemoteExceptionIfUnableToResolveResourceReference

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

testShouldResolveEjbLinkReferencesIntoLocalContext

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

testShouldResolveCircularEjbLinksFromDifferentEjbJarXmlFiles

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