Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 29060D65E for ; Sun, 23 Sep 2012 07:22:02 +0000 (UTC) Received: (qmail 9371 invoked by uid 500); 23 Sep 2012 07:22:00 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 9248 invoked by uid 500); 23 Sep 2012 07:21:58 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 9221 invoked by uid 99); 23 Sep 2012 07:21:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Sep 2012 07:21:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Sep 2012 07:21:56 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 375E223888E3; Sun, 23 Sep 2012 07:21:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1388965 - /camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java Date: Sun, 23 Sep 2012 07:21:13 -0000 To: commits@camel.apache.org From: davsclaus@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120923072113.375E223888E3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: davsclaus Date: Sun Sep 23 07:21:12 2012 New Revision: 1388965 URL: http://svn.apache.org/viewvc?rev=1388965&view=rev Log: Fixed test due last commit. Only affects Camel 2.9 as not all processors is registered by default in JMX. Modified: camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java Modified: camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java?rev=1388965&r1=1388964&r2=1388965&view=diff ============================================================================== --- camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java (original) +++ camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java Sun Sep 23 07:21:12 2012 @@ -53,12 +53,12 @@ public class ManagedRouteStopAndStartCle Long completed = (Long) mbeanServer.getAttribute(on, "ExchangesCompleted"); assertEquals(1, completed.longValue()); - // should be 1 consumer and 2 processors + // should be 1 consumer and 1 processor Set set = mbeanServer.queryNames(new ObjectName("*:type=consumers,*"), null); assertEquals("Should be 1 consumer", 1, set.size()); set = mbeanServer.queryNames(new ObjectName("*:type=processors,*"), null); - assertEquals("Should be 2 processors", 2, set.size()); + assertEquals("Should be 2 processors", 1, set.size()); // stop log.info(">>>>>>>>>>>>>>>>>> invoking stop <<<<<<<<<<<<<<<<<<<<<"); @@ -102,7 +102,7 @@ public class ManagedRouteStopAndStartCle assertEquals("Should be 1 consumer", 1, set.size()); set = mbeanServer.queryNames(new ObjectName("*:type=processors,*"), null); - assertEquals("Should be 2 processors", 2, set.size()); + assertEquals("Should be 1 processors", 1, set.size()); // this time the file is consumed mock.assertIsSatisfied();