User: chirino 
  Date: 01/09/19 22:22:19

  Modified:    src/main/org/jboss/test/mdb/test MDBUnitTestCase.java
  Log:
  Added a test case for BMP MDBs.  It is used to test that bean does not
  get Transaction Timeout errors.  To exercise the test, make sure you
  set you Transaction Timeout value to something under 10 seconds.
  
  Revision  Changes    Path
  1.4       +11 -3     jbosstest/src/main/org/jboss/test/mdb/test/MDBUnitTestCase.java
  
  Index: MDBUnitTestCase.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/mdb/test/MDBUnitTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MDBUnitTestCase.java      2001/09/18 22:00:44     1.3
  +++ MDBUnitTestCase.java      2001/09/20 05:22:19     1.4
  @@ -51,7 +51,7 @@
    * @author  <a href="mailto:[EMAIL PROTECTED]";>Peter Antman</a>
    * @author  <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
    * @author  <a href="mailto:[EMAIL PROTECTED]";>David Jencks</a>
  - * @version <pre>$Revision: 1.3 $</pre>
  + * @version <pre>$Revision: 1.4 $</pre>
    */
   public class MDBUnitTestCase
      extends JBossTestCase
  @@ -90,7 +90,7 @@
      }
   
      protected void printHeader() {
  -      getLog().debug("\n---- Testing method " + getName() + 
  +      getLog().info("\n---- Testing method " + getName() + 
                            " for destination " +dest);
      }
   
  @@ -135,7 +135,7 @@
   
         sender.close();
      }
  -    
  +
      /**
       * Test sending messages to Queue testQueue
       */
  @@ -178,6 +178,12 @@
         session.close();
      }
   
  +
  +   public void testWaitForCompleation() throws Exception {
  +      try { Thread.currentThread().sleep(1000*20);
  +      } catch ( InterruptedException e ) {}
  +   }
  +
      /**
       * Setup the test suite.
       */
  @@ -189,6 +195,8 @@
         suite.addTest(new MDBUnitTestCase("testTopic","topic/testTopic"));
         suite.addTest(new MDBUnitTestCase("testTopic","topic/testDurableTopic"));
         suite.addTest(new MDBUnitTestCase("testQueue","queue/ex"));
  +      suite.addTest(new MDBUnitTestCase("testQueue","queue/A"));
  +      suite.addTest(new MDBUnitTestCase("testWaitForCompleation",""));
   
         return getJ2eeSetup(suite, "mdb.jar");
      }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to