Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F2A21200C0D for ; Tue, 31 Jan 2017 21:10:58 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F0A27160B52; Tue, 31 Jan 2017 20:10:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4440D160B36 for ; Tue, 31 Jan 2017 21:10:58 +0100 (CET) Received: (qmail 41436 invoked by uid 500); 31 Jan 2017 20:10:57 -0000 Mailing-List: contact issues-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list issues@activemq.apache.org Received: (qmail 41427 invoked by uid 99); 31 Jan 2017 20:10:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2017 20:10:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id F1C5BC05E8 for ; Tue, 31 Jan 2017 20:10:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id q2DgoQPet4F3 for ; Tue, 31 Jan 2017 20:10:56 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 15E595F239 for ; Tue, 31 Jan 2017 20:10:56 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 623D0E0479 for ; Tue, 31 Jan 2017 20:10:52 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 9E9FA25290 for ; Tue, 31 Jan 2017 20:10:51 +0000 (UTC) Date: Tue, 31 Jan 2017 20:10:51 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] (ARTEMIS-922) Clean up addressing API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 31 Jan 2017 20:10:59 -0000 [ https://issues.apache.org/jira/browse/ARTEMIS-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15847426#comment-15847426 ] ASF GitHub Bot commented on ARTEMIS-922: ---------------------------------------- Github user clebertsuconic commented on a diff in the pull request: https://github.com/apache/activemq-artemis/pull/982#discussion_r98759149 --- Diff: tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/addressing/AddressingTest.java --- @@ -224,37 +224,30 @@ public void testMulticastRoutingBackwardsCompat() throws Exception { @Test public void testPurgeOnNoConsumersTrue() throws Exception { - SimpleString address = new SimpleString("test.address"); SimpleString queueName = SimpleString.toSimpleString(UUID.randomUUID().toString()); - // For each address, create 2 Queues with the same address, assert both queues receive message - boolean purgeOnNoConsumers = true; - Queue q1 = server.createQueue(address, RoutingType.MULTICAST, queueName, null, true, false, Queue.MAX_CONSUMERS_UNLIMITED, purgeOnNoConsumers, true); - + server.createQueue(address, RoutingType.ANYCAST, queueName, null, null, true, false, false, false, false, 1, true, true); + assertNotNull(server.locateQueue(queueName)); ClientSession session = sessionFactory.createSession(); - session.start(); - - ClientConsumer consumer1 = session.createConsumer(q1.getName()); - consumer1.close(); - - assertFalse(server.queueQuery(queueName).isExists()); + ClientProducer producer = session.createProducer(address); + producer.send(session.createMessage(true)); + session.createConsumer(queueName).close(); --- End diff -- is this really synchronous? don't you need a Wait here? > Clean up addressing API > ----------------------- > > Key: ARTEMIS-922 > URL: https://issues.apache.org/jira/browse/ARTEMIS-922 > Project: ActiveMQ Artemis > Issue Type: Improvement > Reporter: Justin Bertram > Assignee: Justin Bertram > Fix For: 2.0.0 > > > A lot of new methods were added to the broker related to the addressing updates. Older, deprecated methods should no longer be used within the code-base (e.g. in tests) and some new methods can be simplified/consolidated. Some methods can be renamed to be more clear. -- This message was sent by Atlassian JIRA (v6.3.15#6346)