Class StatelessPojoRemoteIntrfcTests

All Implemented Interfaces:
junit.framework.Test

public class StatelessPojoRemoteIntrfcTests extends BasicStatelessTestClient
  • Constructor Details

    • StatelessPojoRemoteIntrfcTests

      public StatelessPojoRemoteIntrfcTests()
  • Method Details

    • setUp

      protected void setUp() throws Exception
      Description copied from class: StatelessTestClient
      Sets up the fixture, for example, open a network connection. This method is called before a test is executed.
      Overrides:
      setUp in class StatelessTestClient
      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 stateless session object. All the stateless 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