assertNull(context.getCurrentMessageId());
assertNull(context.getCurrentCorrelationId());
}
public void testSetGetMessageIdsInNewThread() throws InterruptedException {
WorkContext context = new WorkContextImpl();
context.setCurrentMessageId("msg-009");
context.setCurrentCorrelationId("msg-005");
assertEquals(context.getCurrentMessageId(), "msg-009");
assertEquals(context.getCurrentCorrelationId(), "msg-005");
context.setIdentifier("TX", "002");
ChildThread t = new ChildThread(context);
t.start();
t.join();
assertTrue(t.passed);
context.setCurrentMessageId(null);
context.setCurrentCorrelationId(null);
assertNull(context.getCurrentMessageId());
assertNull(context.getCurrentCorrelationId());
}