MessageMappingMethodInvoker now uses Assert instead of throwing ConfigurationException if the method does not accept any arguments.
This commit is contained in:
@@ -44,7 +44,7 @@ public class MethodInvokingConsumerTests {
|
||||
consumer.onMessage(new GenericMessage<String>("test"));
|
||||
}
|
||||
|
||||
@Test(expected = ConfigurationException.class)
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void testInvalidMethodWithNoArgs() {
|
||||
MethodInvokingConsumer consumer = new MethodInvokingConsumer(new TestSink(), "invalidMethodWithNoArgs");
|
||||
consumer.afterPropertiesSet();
|
||||
|
||||
Reference in New Issue
Block a user