use of org.apache.camel.builder.NotifyBuilder in project camel by apache.
the class ZipkinSimpleFallbackRouteTest 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:dude", "Hello World");
}
assertTrue(notify.matches(30, TimeUnit.SECONDS));
}
use of org.apache.camel.builder.NotifyBuilder in project camel by apache.
the class ZipkinSimpleLogStreamsRouteTest 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:dude", "Hello World");
}
assertTrue(notify.matches(30, TimeUnit.SECONDS));
}
use of org.apache.camel.builder.NotifyBuilder in project camel by apache.
the class ZipkinSimpleRouteTest 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:dude", "Hello World");
}
assertTrue(notify.matches(30, TimeUnit.SECONDS));
}
use of org.apache.camel.builder.NotifyBuilder in project camel by apache.
the class ManagedZipkinSimpleRouteTest method testZipkinRoute.
@Test
public void testZipkinRoute() throws Exception {
// JMX tests dont work well on AIX CI servers (hangs them)
if (isPlatform("aix")) {
return;
}
MBeanServer mbeanServer = getMBeanServer();
ObjectName on = new ObjectName("org.apache.camel:context=camel-1,type=services,name=ZipkinTracer");
assertNotNull(on);
assertTrue(mbeanServer.isRegistered(on));
Float rate = (Float) mbeanServer.getAttribute(on, "Rate");
assertEquals("Should be 1.0f", 1.0f, rate.floatValue(), 0.1f);
NotifyBuilder notify = new NotifyBuilder(context).whenDone(5).create();
for (int i = 0; i < 5; i++) {
template.sendBody("seda:dude", "Hello World");
}
assertTrue(notify.matches(30, TimeUnit.SECONDS));
}
use of org.apache.camel.builder.NotifyBuilder in project camel by apache.
the class SpringZipkinSimpleRouteTest 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("direct:start", "Hello World");
}
assertTrue(notify.matches(30, TimeUnit.SECONDS));
}
Aggregations