use of org.mule.runtime.core.privileged.event.PrivilegedEvent in project mule by mulesoft.
the class RequestContextTestCase method runThread.
protected void runThread(CoreEvent event, boolean doTest) throws InterruptedException {
AtomicBoolean success = new AtomicBoolean(false);
Thread thread = new Thread(new SetExceptionPayload((PrivilegedEvent) event, success));
thread.start();
thread.join();
if (doTest) {
// Since events are now immutable, there should be no failures due to this!
assertEquals(true, success.get());
}
}
Aggregations