use of org.apache.camel.builder.NotifyBuilder in project camel by apache.
the class ZipkinClientRecipientListRouteTest method testZipkinRoute.
@Test
public void testZipkinRoute() throws Exception {
NotifyBuilder notify = new NotifyBuilder(context).whenDone(1).create();
template.requestBody("direct:start", "Hello World");
assertTrue(notify.matches(30, TimeUnit.SECONDS));
}
use of org.apache.camel.builder.NotifyBuilder in project camel by apache.
the class ZipkinMulticastRouteTest method testZipkinRoute.
@Test
public void testZipkinRoute() throws Exception {
NotifyBuilder notify = new NotifyBuilder(context).whenDone(1).create();
template.requestBody("direct:start", "Hello World");
assertTrue(notify.matches(30, TimeUnit.SECONDS));
}
use of org.apache.camel.builder.NotifyBuilder in project camel by apache.
the class ZipkinRecipientListRouteTest method testZipkinRoute.
@Test
public void testZipkinRoute() throws Exception {
NotifyBuilder notify = new NotifyBuilder(context).whenDone(1).create();
template.requestBody("direct:start", "Hello World");
assertTrue(notify.matches(30, TimeUnit.SECONDS));
}
use of org.apache.camel.builder.NotifyBuilder in project camel by apache.
the class ZipkinRouteConcurrentTest method testZipkinRoute.
@Test
public void testZipkinRoute() throws Exception {
NotifyBuilder notify = new NotifyBuilder(context).whenDone(5).create();
for (int i = 0; i < 5; i++) {
template.sendBody("seda:foo", "Hello World");
}
assertTrue(notify.matches(30, TimeUnit.SECONDS));
}
use of org.apache.camel.builder.NotifyBuilder in project camel by apache.
the class RestApplicationTest method shouldProduceMessages.
@Test
public void shouldProduceMessages() throws Exception {
// we expect that one or more messages is automatic done by the Camel
// route as it uses a timer to trigger
NotifyBuilder notify = new NotifyBuilder(camelContext).whenDone(1).create();
assertTrue(notify.matches(10, TimeUnit.SECONDS));
}
Aggregations