Class SingletonLocalIntfcTests

All Implemented Interfaces:
junit.framework.Test

public class SingletonLocalIntfcTests extends BasicSingletonLocalTestClient
  • Constructor Details

    • SingletonLocalIntfcTests

      public SingletonLocalIntfcTests()
  • 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 in the bean and make sure the exception reaches the client 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. This one seems to fail. we should double-check the spec on this.
    • tearDown

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