[jboss-cvs] JBoss Messaging SVN: r2568 - branches/Branch_1_2_0_SP/tests/src/org/jboss/test/messaging/jms.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Mar 30 17:17:21 EDT 2007


Author: clebert.suconic at jboss.com
Date: 2007-03-30 17:17:21 -0400 (Fri, 30 Mar 2007)
New Revision: 2568

Modified:
   branches/Branch_1_2_0_SP/tests/src/org/jboss/test/messaging/jms/DuplicateClientIDTest.java
Log:
http://jira.jboss.org/jira/browse/JBMESSAGING-932

Modified: branches/Branch_1_2_0_SP/tests/src/org/jboss/test/messaging/jms/DuplicateClientIDTest.java
===================================================================
--- branches/Branch_1_2_0_SP/tests/src/org/jboss/test/messaging/jms/DuplicateClientIDTest.java	2007-03-28 19:40:59 UTC (rev 2567)
+++ branches/Branch_1_2_0_SP/tests/src/org/jboss/test/messaging/jms/DuplicateClientIDTest.java	2007-03-30 21:17:21 UTC (rev 2568)
@@ -82,6 +82,18 @@
          if (c2 != null) c2.close();
       }
 
+      // This clause was added for http://jira.jboss.org/jira/browse/JBMESSAGING-932
+      // If opening a new connection after closing the previous one... this should work
+      try
+      {
+         c1 = cf.createConnection();
+         c1.setClientID("Duplicated");
+      }
+      finally
+      {
+         if (c1 != null) c1.close();
+      }
+
    }
 
    //http://jira.jboss.com/jira/browse/JBMESSAGING-816
@@ -123,6 +135,24 @@
             c2.close();
          }
       }
+
+      // This clause was added for http://jira.jboss.org/jira/browse/JBMESSAGING-932
+      // If opening a new connection after closing the previous one... this should work
+      try
+      {
+         c1 = cf.createConnection("dilbert", "dogbert");
+         assertNotNull(c1);
+         assertNotNull(c1.getClientID());
+      }
+      finally
+      {
+         if (c1 != null)
+         {
+            c1.close();
+         }
+      }
+
+
    }
 
    public void testNotDuplicateClientID() throws Exception




More information about the jboss-cvs-commits mailing list