use of net.dempsy.lifecycle.annotations.TestMps.TestMpExtraParametersChangedOrder in project Dempsy by Dempsy.
the class MessageProcessorTest method testMethodHandleExtraParametersOrderChanged.
@Test
public void testMethodHandleExtraParametersOrderChanged() throws Throwable {
final MessageProcessor<TestMpExtraParametersChangedOrder> helper = new MessageProcessor<TestMpExtraParametersChangedOrder>(new TestMpExtraParametersChangedOrder());
helper.validate();
final TestMpExtraParametersChangedOrder mp = helper.newInstance();
assertFalse(mp.isActivated());
helper.activate(mp, "activate");
assertTrue(mp.isActivated());
assertFalse(mp.ispassivateCalled());
helper.passivate(mp);
assertTrue(mp.ispassivateCalled());
}
Aggregations