Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 73727 invoked from network); 6 Feb 2010 16:09:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Feb 2010 16:09:46 -0000 Received: (qmail 79944 invoked by uid 500); 6 Feb 2010 16:09:46 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 79897 invoked by uid 500); 6 Feb 2010 16:09:46 -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 79887 invoked by uid 99); 6 Feb 2010 16:09:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Feb 2010 16:09:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of foamdino@gmail.com designates 209.85.218.211 as permitted sender) Received: from [209.85.218.211] (HELO mail-bw0-f211.google.com) (209.85.218.211) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Feb 2010 16:09:38 +0000 Received: by bwz3 with SMTP id 3so4036814bwz.33 for ; Sat, 06 Feb 2010 08:09:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=C1WTzDz1fST7p7wH9QCFhG4TkCV563bAUZGHeE3ZVms=; b=YTiv6aj3QpB8xEBnFjL8Ng4e+m8PZ6NZvzeXeBZLeWSb1Vc/mK6Uwui21EYolr+XBA WP5e1+0QOKyZmnw8rUkYG734WPDT3xJF7xpUy5/uQkpu3CsWK8nJoNituQkZhV39OCMW PsEnabXqaKkr8zzjyv1IRWlac8z6pekN4m8Uk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=P+vpraxdlW/OpBKqywisXHYgDj512KcpNL6qk2v8jdKw2D09DxTYiiW9/eewMJa51b J1kIUSitqwnzUDP0Makmvks0KnOse6h3vPb+q3KIxQzbRbtW+mIKtLEkYWSBocVSpyBX bJTn8/LHwcd5WYanW9nGlAA+ENmy0Q5RPfGGs= MIME-Version: 1.0 Received: by 10.204.25.197 with SMTP id a5mr69107bkc.70.1265472554384; Sat, 06 Feb 2010 08:09:14 -0800 (PST) Date: Sat, 6 Feb 2010 16:09:14 +0000 Message-ID: Subject: Integration testing a route before production From: Kevin Jackson To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have a route configured in Spring and I would like to integration test (from file endpoint with production data to persistence in test db) For example: Now I want to run this route with production data and ensure that the sample of data I used in my unit tests is representative and that the production data doesn't cause my pojos to break in any weird ways. I'm also interested in seeing how much ram this single route will consume with realistic data before I add it to the live routes. # How do I trigger this route to run (in the context of an @Test decorated method)? # How do I make any meaningful assertions against the mock:result? Essentially I want to 'assertNoExceptions' and assertTrue(memoryUsed < 80Mb) (or any other arbitrary value. If I wire up the db layer I can assert against the data in the tables, but that's a data centric approach and I think what I'm after is not easily defined by data. For example I can prove by induction that if the code works for 1 valid input dataset then it will work for n valid input datasets, so I'm leaning more towards testing intangibles (performance [time|space], robustness of handling real workloads/data etc). Sorry I can't really explain why I feel I need to do this, just that I think it's necessary in this one particular case - does anyone have any suggestions for how to at least start up the route in a testing context? Thanks, Kev