Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8DE3010E34 for ; Thu, 22 Aug 2013 03:12:33 +0000 (UTC) Received: (qmail 28156 invoked by uid 500); 22 Aug 2013 03:12:32 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 27730 invoked by uid 500); 22 Aug 2013 03:12:20 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 27710 invoked by uid 99); 22 Aug 2013 03:12:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Aug 2013 03:12:18 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Aug 2013 03:12:13 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VCLJ6-0000zv-79 for users@camel.apache.org; Wed, 21 Aug 2013 20:11:32 -0700 Date: Wed, 21 Aug 2013 20:11:32 -0700 (PDT) From: "peacock.snowdrift" To: users@camel.apache.org Message-ID: <1377141092213-5737714.post@n5.nabble.com> In-Reply-To: References: <1377128227968-5737710.post@n5.nabble.com> Subject: Re: aggregator and onCompletion MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org ceposta wrote > sorry, i mean your unit test I don't think I can do that. The test creates the routes, using a ProducerTemplate as the start URI and a MockEndpoint for the destination URI. I create a RouteBuilder and assign the routes to it using the context. I create my test data and use template.sendBodyAndHeader() to send it to the endpoint. The JUnit test checks that the result endpoint's successful and failure exchanges are as expected. -- View this message in context: http://camel.465427.n5.nabble.com/aggregator-and-onCompletion-tp5737710p5737714.html Sent from the Camel - Users mailing list archive at Nabble.com.