INT-1038, Change assertion to validate if 'ref' element has text (because it is never 'null', but rather "")

This commit is contained in:
Oleg Zhurakousky
2010-03-18 22:08:16 +00:00
parent 4557cc143e
commit ed851417bd

View File

@@ -40,7 +40,7 @@ public class MethodInvokingOutboundChannelAdapterParser extends AbstractOutbound
consumerRef = BeanDefinitionReaderUtils.registerWithGeneratedName(
this.parseConsumer(element, parserContext), parserContext.getRegistry());
}
Assert.notNull(consumerRef, "Can not determine consumer for outbound-channel-adapter");
Assert.hasText(consumerRef, "Can not determine consumer for 'outbound-channel-adapter'");
return consumerRef;
}