Search in sources :

Example 1 with MessageNoTypeInfo

use of net.dempsy.lifecycle.annotations.TestMps.MessageNoTypeInfo in project Dempsy by Dempsy.

the class MessageProcessMessageHandlingTest method testMpMessageTypeInfo.

@Test
public void testMpMessageTypeInfo() throws Exception {
    final MessageProcessor<TestMpMessageTypeClass> helper = new MessageProcessor<TestMpMessageTypeClass>(new TestMpMessageTypeClass());
    helper.validate();
    final MessageNoTypeInfo m = new MessageNoTypeInfo("yo");
    final TestMpMessageTypeClass instance = helper.newInstance();
    helper.invoke(instance, km(m));
}
Also used : MessageNoTypeInfo(net.dempsy.lifecycle.annotations.TestMps.MessageNoTypeInfo) MessageProcessor(net.dempsy.lifecycle.annotation.MessageProcessor) TestMpMessageTypeClass(net.dempsy.lifecycle.annotations.TestMps.TestMpMessageTypeClass) Test(org.junit.Test)

Aggregations

MessageProcessor (net.dempsy.lifecycle.annotation.MessageProcessor)1 MessageNoTypeInfo (net.dempsy.lifecycle.annotations.TestMps.MessageNoTypeInfo)1 TestMpMessageTypeClass (net.dempsy.lifecycle.annotations.TestMps.TestMpMessageTypeClass)1 Test (org.junit.Test)1