464465466467468469470471472473474
e5.setProperty(Exchange.BATCH_SIZE, 3); e5.setProperty(Exchange.BATCH_COMPLETE, true); ap.process(e1); ap.process(e2); ap.process(e3); ap.process(e4); ap.process(e5); assertMockEndpointsSatisfied();
465466467468469470471472473474475
e5.setProperty(Exchange.BATCH_COMPLETE, true); ap.process(e1); ap.process(e2); ap.process(e3); ap.process(e4); ap.process(e5); assertMockEndpointsSatisfied(); ap.stop();
466467468469470471472473474475476
ap.process(e1); ap.process(e2); ap.process(e3); ap.process(e4); ap.process(e5); assertMockEndpointsSatisfied(); ap.stop(); }
546547548549550551552553554555556
Exchange e5 = new DefaultExchange(context); e5.getIn().setBody("END"); e5.getIn().setHeader("id", 123); ap.process(e1); ap.process(e2); ap.process(e3); ap.process(e4); ap.process(e5);
547548549550551552553554555556557
Exchange e5 = new DefaultExchange(context); e5.getIn().setBody("END"); e5.getIn().setHeader("id", 123); ap.process(e1); ap.process(e2); ap.process(e3); ap.process(e4); ap.process(e5); assertMockEndpointsSatisfied();
548549550551552553554555556557558
e5.getIn().setBody("END"); e5.getIn().setHeader("id", 123); ap.process(e1); ap.process(e2); ap.process(e3); ap.process(e4); ap.process(e5); assertMockEndpointsSatisfied();
549550551552553554555556557558559
e5.getIn().setHeader("id", 123); ap.process(e1); ap.process(e2); ap.process(e3); ap.process(e4); ap.process(e5); assertMockEndpointsSatisfied(); ap.stop();
550551552553554555556557558559560
589590591592593594595596597598599
Exchange e4 = new DefaultExchange(context); e4.getIn().setBody("END"); e4.getIn().setHeader("id", 456); ap.process(e1); ap.process(e2); ap.process(e3); ap.process(e4); assertEquals("should not have completed yet", 0, mock.getExchanges().size());
590591592593594595596597598599600