Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 57532 invoked from network); 3 Jul 2009 18:36:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jul 2009 18:36:21 -0000 Received: (qmail 35405 invoked by uid 500); 3 Jul 2009 18:36:31 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 35357 invoked by uid 500); 3 Jul 2009 18:36:31 -0000 Mailing-List: contact dev-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 dev@camel.apache.org Received: (qmail 35347 invoked by uid 500); 3 Jul 2009 18:36:31 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 35344 invoked by uid 99); 3 Jul 2009 18:36:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2009 18:36:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2009 18:36:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 20147234C046 for ; Fri, 3 Jul 2009 11:36:07 -0700 (PDT) Message-ID: <2029648607.1246646167129.JavaMail.jira@brutus> Date: Fri, 3 Jul 2009 11:36:07 -0700 (PDT) From: "Jonathan Anstey (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1392) groovy renderer In-Reply-To: <1908239513.1235639520155.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52686#action_52686 ] Jonathan Anstey commented on CAMEL-1392: ---------------------------------------- Quickly trying this new code drop out before leaving for the day :) In the GroovyRendererTest I noticed pretty much all routes defined in the supported list get rendered like "from("direct:start",).to("mock:result")". Example output: {code} dsl: from("direct:start").unmarshal().serialization().to("mock:result") after rendered: import org.apache.camel.language.groovy.GroovyRouteBuilder; class GroovyRoute extends GroovyRouteBuilder { void configure() { from("direct:start",).to("mock:result") } } {code} Not sure if this is a bug in the renderer or the test case. Care to fix that up? Also unit tests typically contain assertions on the output of a piece of code to make sure its operating correctly. In your case the test should be asserting that the output of the renderer is correct. Currently we have to verify this by looking at the output. > groovy renderer > --------------- > > Key: CAMEL-1392 > URL: https://issues.apache.org/activemq/browse/CAMEL-1392 > Project: Apache Camel > Issue Type: Sub-task > Reporter: James Strachan > Assignee: Xueqiang Mi > Attachments: camel-web-20090629.patch, camel-web-20090703.patch > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.