qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arnaudsi...@apache.org
Subject svn commit: r581579 - /incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/temporaryqueue/TemporaryQueueTest.java
Date Wed, 03 Oct 2007 12:20:02 GMT
Author: arnaudsimon
Date: Wed Oct  3 05:20:01 2007
New Revision: 581579

URL: http://svn.apache.org/viewvc?rev=581579&view=rev
Log:
Changed to use QpidTestCase

Modified:
    incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/temporaryqueue/TemporaryQueueTest.java

Modified: incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/temporaryqueue/TemporaryQueueTest.java
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/temporaryqueue/TemporaryQueueTest.java?rev=581579&r1=581578&r2=581579&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/temporaryqueue/TemporaryQueueTest.java
(original)
+++ incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/temporaryqueue/TemporaryQueueTest.java
Wed Oct  3 05:20:01 2007
@@ -28,26 +28,17 @@
 import javax.jms.Session;
 import javax.jms.TemporaryQueue;
 import javax.jms.TextMessage;
-import javax.jms.Queue;
-
-import junit.framework.TestCase;
 import junit.framework.Assert;
 
-import org.apache.qpid.AMQException;
-import org.apache.qpid.client.AMQConnection;
+import org.apache.qpid.testutil.QpidTestCase;
 import org.apache.qpid.client.AMQQueue;
 import org.apache.qpid.client.transport.TransportConnection;
-import org.apache.qpid.url.URLSyntaxException;
 
 import java.util.List;
 import java.util.LinkedList;
 
-public class TemporaryQueueTest extends TestCase
+public class TemporaryQueueTest extends QpidTestCase
 {
-
-    String _broker = "vm://:1";
-
-
     protected void setUp() throws Exception
     {
         super.setUp();
@@ -59,10 +50,9 @@
         TransportConnection.killAllVMBrokers();
     }
 
-    protected Connection createConnection() throws AMQException, URLSyntaxException
+    protected Connection createConnection() throws Exception
     {
-        return new AMQConnection(_broker, "guest", "guest",
-                                 "fred", "test");
+        return  getConnection("guest", "guest");
     }
 
     public void testTempoaryQueue() throws Exception
@@ -103,7 +93,7 @@
         conn.close();
     }
 
-    public void tUniqueness() throws JMSException, AMQException, URLSyntaxException
+    public void tUniqueness() throws Exception
     {
         int numProcs = Runtime.getRuntime().availableProcessors();
         final int threadsProc = 5;
@@ -114,7 +104,7 @@
         runUniqueness(numProcs * threadsProc, 500);
     }
 
-    void runUniqueness(int makers, int queues) throws JMSException, AMQException, URLSyntaxException
+    void runUniqueness(int makers, int queues) throws Exception
     {
         Connection connection = createConnection();
 



Mime
View raw message