All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gmaslowski.camel.test.unit.CamelProcessorUnitTest Maven / Gradle / Ivy

There is a newer version: 1.0
Show newest version
package com.gmaslowski.camel.test.unit;

import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;

public abstract class CamelProcessorUnitTest extends CamelUnitTestBase {

    protected abstract Processor processorUnderTest();

    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                from(fromEndpointUri)
                        .process(processorUnderTest())
                        .to(toEndpointUri);
            }
        };
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy