You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kw...@apache.org on 2018/01/17 08:09:51 UTC

qpid-broker-j git commit: QPID-6933: [System Tests] Move AMQP 0-x client specific test CloseWithBlockingReceiveTest to client suite

Repository: qpid-broker-j
Updated Branches:
  refs/heads/master ac5587287 -> 59051baa4


QPID-6933: [System Tests] Move AMQP 0-x client specific test CloseWithBlockingReceiveTest to client suite


Project: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/commit/59051baa
Tree: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/tree/59051baa
Diff: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/diff/59051baa

Branch: refs/heads/master
Commit: 59051baa49b668e513f0a78c63f50f914b745289
Parents: ac55872
Author: Keith Wall <ke...@gmail.com>
Authored: Tue Jan 16 22:30:07 2018 +0000
Committer: Keith Wall <ke...@gmail.com>
Committed: Tue Jan 16 22:30:07 2018 +0000

----------------------------------------------------------------------
 .../CloseWithBlockingReceiveTest.java           | 74 --------------------
 1 file changed, 74 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-broker-j/blob/59051baa/systests/src/test/java/org/apache/qpid/test/unit/client/channelclose/CloseWithBlockingReceiveTest.java
----------------------------------------------------------------------
diff --git a/systests/src/test/java/org/apache/qpid/test/unit/client/channelclose/CloseWithBlockingReceiveTest.java b/systests/src/test/java/org/apache/qpid/test/unit/client/channelclose/CloseWithBlockingReceiveTest.java
deleted file mode 100644
index 7889121..0000000
--- a/systests/src/test/java/org/apache/qpid/test/unit/client/channelclose/CloseWithBlockingReceiveTest.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
- */
-package org.apache.qpid.test.unit.client.channelclose;
-
-import org.apache.qpid.test.utils.QpidBrokerTestCase;
-
-import javax.jms.Connection;
-import javax.jms.Destination;
-import javax.jms.MessageConsumer;
-import javax.jms.Session;
-
-/**
- * @author Apache Software Foundation
- */
-public class CloseWithBlockingReceiveTest extends QpidBrokerTestCase
-{
-
-
-    public void testReceiveReturnsNull() throws Exception
-    {
-        final Connection connection =  getConnection();
-        Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
-        Destination destination = createTestQueue(session);
-        MessageConsumer consumer = session.createConsumer(destination);
-        connection.start();
-
-        Runnable r = new Runnable()
-        {
-
-            @Override
-            public void run()
-            {
-                try
-                {
-                    Thread.sleep(1000);
-                    connection.close();
-                }
-                catch (Exception e)
-                {
-                }
-            }
-        };
-        long startTime = System.currentTimeMillis();
-        Thread thread = new Thread(r);
-        thread.start();
-        try
-        {
-            consumer.receive(10000);
-            assertTrue(System.currentTimeMillis() - startTime < 10000);
-        }
-        finally
-        {
-            thread.join();
-        }
-    }
-}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org