use of net.dempsy.lifecycle.annotations.TestMps.TestMpWithReturn in project Dempsy by Dempsy.
the class MessageProcessMessageHandlingTest method testMpMessageTypeInfoOnReturn.
@Test
public void testMpMessageTypeInfoOnReturn() throws Exception {
final MessageProcessor<TestMpWithReturn> helper = new MessageProcessor<TestMpWithReturn>(new TestMpWithReturn());
helper.validate();
final Message m = new Message("yo");
final TestMpWithReturn instance = helper.newInstance();
final List<KeyedMessageWithType> kms = helper.invoke(instance, km(m));
assertEquals(1, kms.size());
assertNotNull(kms.get(0).messageTypes);
assertEquals(1, kms.get(0).messageTypes.length);
}
Aggregations