Class SingletonPojoRemoteIntrfcTests

All Implemented Interfaces:
junit.framework.Test

public class SingletonPojoRemoteIntrfcTests extends BasicSingletonTestClient
  • Constructor Details

    • SingletonPojoRemoteIntrfcTests

      public SingletonPojoRemoteIntrfcTests()
  • Method Details

    • setUp

      protected void setUp() throws Exception
      Description copied from class: SingletonTestClient
      Sets up the fixture, for example, open a network connection. This method is called before a test is executed.
      Overrides:
      setUp in class SingletonTestClient
      Throws:
      Exception
    • test01_businessMethod

      public void test01_businessMethod()
    • test02_throwApplicationException

      public void test02_throwApplicationException()
      Throw an application exception and make sure the exception reaches the bean nicely.
    • test03_invokeAfterApplicationException

      public void test03_invokeAfterApplicationException()
      After an application exception we should still be able to use our bean
    • test04_throwSystemException

      public void test04_throwSystemException()
    • test05_invokeAfterSystemException

      public void test05_invokeAfterSystemException()
      After a system exception the intance should be garbage collected but this is invisible to the client as it will just use another singleton session object. All the singleton session objects are equal. Refer 4.5.3 in EJB 3.0 core specification.
    • tearDown

      protected void tearDown() throws Exception
      Overrides:
      tearDown in class NumberedTestCase
      Throws:
      Exception