[jboss-cvs] JBossAS SVN: r105822 - branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/jbossmessaging/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jun 8 18:05:52 EDT 2010


Author: clebert.suconic at jboss.com
Date: 2010-06-08 18:05:52 -0400 (Tue, 08 Jun 2010)
New Revision: 105822

Modified:
   branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/jbossmessaging/test/SecurityUnitTestCase.java
Log:
Fixing tests

Modified: branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/jbossmessaging/test/SecurityUnitTestCase.java
===================================================================
--- branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/jbossmessaging/test/SecurityUnitTestCase.java	2010-06-08 22:03:56 UTC (rev 105821)
+++ branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/jbossmessaging/test/SecurityUnitTestCase.java	2010-06-08 22:05:52 UTC (rev 105822)
@@ -1144,13 +1144,13 @@
          sleep(ic * 100);
          Exception ex = sub1.getException();
          if (ex != null)
-            log.error("ValidDynDurSub got an exception: " + ex, ex);
+         {
+             throw ex;
+         }
          Assert.assertTrue("ValidDynDurSub did not work", ex == null);
          Assert.assertEquals("Subscriber did not get correct number of messages " + sub1.getMessageHandled(), ic, sub1
                .getMessageHandled());
-         sub1.setStoped();
          t1.interrupt();
-         t1.join();
       }
       finally
       {
@@ -1170,7 +1170,6 @@
          }
          catch (Exception ex)
          {
-            log.error("---------------- xxxxxxx ----------------", ex);
          }
       }
    }



More information about the jboss-cvs-commits mailing list