01: package org.objectweb.celtix.bus.context;
02:
03: import javax.xml.ws.LogicalMessage;
04: import javax.xml.ws.handler.MessageContext;
05: import org.objectweb.celtix.context.GenericMessageContext;
06:
07: public class LogicalMessageContextTest extends
08: AbstractMessageContextTestBase {
09:
10: GenericMessageContext wrapped = new GenericMessageContext();
11:
12: LogicalMessageContextImpl ctx = new LogicalMessageContextImpl(
13: wrapped);
14:
15: @Override
16: protected MessageContext getMessageContext() {
17: return ctx;
18: }
19:
20: public void testGetMessage() {
21:
22: LogicalMessage msg = ctx.getMessage();
23: assertNotNull(msg);
24: assertTrue(LogicalMessageImpl.class.isInstance(msg));
25: }
26: }
|