On 9 May 2012 11:35, Claus Ibsen <claus.ib...@gmail.com> wrote:

> Hi
>
> You can also take a look at notify builder, which allows you to
> testing alike a "black box"
> http://camel.apache.org/notifybuilder.html
>
> And then there is advice with, where you can adjust the route before
> testing, and inject mocks, and whatnot
> http://camel.apache.org/advicewith.html
>
> And some general testing details here
> http://camel.apache.org/testing.html
>
> On Wed, May 9, 2012 at 11:35 AM, James Morgan <james.morga...@gmail.com>
> wrote:
> > I'm currently creating a simple Quartz scheduler queue which will run
> afew
> > times a day and simple drop a message on a queue which in turn will
> invoke
> > a processor which will do my work.
> >
> > Ive been looking at using adviceWith to test my routing but at present am
> > having trouble working out how to test the quartz triggering.
> >
> > Can anyone point me in the right direction of a good example of how to
> test
> > a camel quartz route please?
> >
> > I'm using Spring 3.1 and Camel 2.8.4
> >
> > Cheers for any help or advice.
> >
> > James
> >
> > My route:
> >
> > @Component("exportTriggerRouting")
> > public class ExportTriggerRouting extends RouteBuilder {
> >
> >    @AutowiredProperty("batchExport.cronExpression")
> >    private String cronExpression = "2"; // this will be based on the
> > environment
> >
> >    @Override
> >    public void configure() throws Exception {
> >        //@formatter:off
> >        from("quartz://myTrigger/batchExport?cron=" + this.cronExpression)
> >            .log(LoggingLevel.INFO, "Triggered Batch Export Queue")
> >            .setBody(constant(""))
> >            .routeId(getClass().getSimpleName())
> >            .to("jms:batch-export-trigger");
> >        //@formatter:on
> >    }
> > }
>
>
>
> --
> Claus Ibsen
> -----------------
> CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
> FuseSource
> Email: cib...@fusesource.com
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>

Reply via email to