activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1424462 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/LDAPSecurityTest.java
Date Thu, 20 Dec 2012 13:47:01 GMT
Author: dejanb
Date: Thu Dec 20 13:47:00 2012
New Revision: 1424462

URL: http://svn.apache.org/viewvc?rev=1424462&view=rev
Log:
fix LDAPSecurityTest failure

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/LDAPSecurityTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/LDAPSecurityTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/LDAPSecurityTest.java?rev=1424462&r1=1424461&r2=1424462&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/LDAPSecurityTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/LDAPSecurityTest.java
Thu Dec 20 13:47:00 2012
@@ -87,8 +87,8 @@ public class LDAPSecurityTest extends Ab
         conn.start();
         Queue queue = sess.createQueue("ADMIN.FOO");
 
-        MessageProducer producer = sess.createProducer(queue);
         try {
+            MessageProducer producer = sess.createProducer(queue);
             producer.send(sess.createTextMessage("test"));
             fail("expect auth exception");
         } catch (JMSException expected) {
@@ -103,8 +103,8 @@ public class LDAPSecurityTest extends Ab
         conn.start();
         Queue queue = sess.createQueue("TEST.FOO,ADMIN.FOO");
 
-        MessageProducer producer = sess.createProducer(queue);
         try {
+            MessageProducer producer = sess.createProducer(queue);
             producer.send(sess.createTextMessage("test"));
             fail("expect auth exception");
         } catch (JMSException expected) {



Mime
View raw message