You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2009/01/08 10:14:36 UTC
svn commit: r732654 - in
/activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor:
interceptor/InterceptAlterMessageBeforeRedeliveryTest.java
onexception/InterceptAlterMessageBeforeRedeliveryTest.java
Author: davsclaus
Date: Thu Jan 8 01:14:35 2009
New Revision: 732654
URL: http://svn.apache.org/viewvc?rev=732654&view=rev
Log:
Polished code and renamed unit test to correct pacakge
Added:
activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/interceptor/InterceptAlterMessageBeforeRedeliveryTest.java (contents, props changed)
- copied, changed from r732612, activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/onexception/InterceptAlterMessageBeforeRedeliveryTest.java
Removed:
activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/onexception/InterceptAlterMessageBeforeRedeliveryTest.java
Copied: activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/interceptor/InterceptAlterMessageBeforeRedeliveryTest.java (from r732612, activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/onexception/InterceptAlterMessageBeforeRedeliveryTest.java)
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/interceptor/InterceptAlterMessageBeforeRedeliveryTest.java?p2=activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/interceptor/InterceptAlterMessageBeforeRedeliveryTest.java&p1=activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/onexception/InterceptAlterMessageBeforeRedeliveryTest.java&r1=732612&r2=732654&rev=732654&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/onexception/InterceptAlterMessageBeforeRedeliveryTest.java (original)
+++ activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/interceptor/InterceptAlterMessageBeforeRedeliveryTest.java Thu Jan 8 01:14:35 2009
@@ -14,11 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.processor.onexception;
+package org.apache.camel.processor.interceptor;
import org.apache.camel.ContextTestSupport;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
+import org.apache.camel.processor.onexception.MyTechnicalException;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
@@ -64,8 +65,8 @@
// START SNIPPET: e1
// we configure an interceptor that is triggered when the redelivery flag
- // has been set on an exchange
- intercept().when(header("org.apache.camel.Redelivered").isNotNull()).
+ // has been set TRUE on an exchange
+ intercept().when(header("org.apache.camel.Redelivered").isEqualTo(Boolean.TRUE)).
process(new Processor() {
public void process(Exchange exchange) throws Exception {
// the message is being redelivered so we can alter it
Propchange: activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/interceptor/InterceptAlterMessageBeforeRedeliveryTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/interceptor/InterceptAlterMessageBeforeRedeliveryTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/interceptor/InterceptAlterMessageBeforeRedeliveryTest.java
------------------------------------------------------------------------------
svn:mergeinfo =