Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 38959 invoked from network); 24 Jan 2011 09:15:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jan 2011 09:15:13 -0000 Received: (qmail 59748 invoked by uid 500); 24 Jan 2011 09:15:12 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 59263 invoked by uid 500); 24 Jan 2011 09:15:10 -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 59051 invoked by uid 500); 24 Jan 2011 09:15:07 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 59047 invoked by uid 99); 24 Jan 2011 09:15:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jan 2011 09:15:07 +0000 X-ASF-Spam-Status: No, hits=-1998.7 required=10.0 tests=ALL_TRUSTED,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jan 2011 09:15:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0O9EkHF006197 for ; Mon, 24 Jan 2011 09:14:46 GMT Message-ID: <3324916.147371295860486587.JavaMail.jira@thor> Date: Mon, 24 Jan 2011 04:14:46 -0500 (EST) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Issue Comment Edited: (CAMEL-3578) MockEndpoint - Add feature to mock any endpoint In-Reply-To: <31908503.134781295785963379.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-3578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985574#action_12985574 ] Claus Ibsen edited comment on CAMEL-3578 at 1/24/11 4:13 AM: ------------------------------------------------------------- In Spring XML you can add a spring bean to enable mocking {code:xml} Bye World {code} It supports a pattern so you can for example say to only mock all log endpoints: {code:xml} {code} was (Author: davsclaus): In Spring XML you can add a spring bean to enable mocking {code:xml} Bye World {code} It supports a pattern so you can for example say to only mock all log endpoints: {code:xml} {code} {code} > MockEndpoint - Add feature to mock any endpoint > ----------------------------------------------- > > Key: CAMEL-3578 > URL: https://issues.apache.org/jira/browse/CAMEL-3578 > Project: Camel > Issue Type: New Feature > Components: camel-core > Affects Versions: 2.5.0 > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: 2.7.0 > > > See nabble > http://camel.465427.n5.nabble.com/Unit-Testing-Route-td3284803.html > The idea is to be able to mock any endpoint on a route and thus be able to set expectations. > In the 2.x architecture we will have to implement this using the adviceWith as the route must be {{re-processed}} so we can add the interceptor logic to mock > any endpoints. > In Camel 3.x this could be applied dynamically on the Channel. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.