Message Endpoints and the SimpleTaskScheduler now manage their own lifecycles. The ApplicationContextMessageBus is no longer necessary (part of INT-462). The MessagePublishingErrorHandler now detects the default error channel within the beanFactory if necessary (INT-464).
This commit is contained in:
@@ -97,9 +97,7 @@ public class ConsoleInboundChannelAdapterParserTests {
|
||||
catch (BeanCreationException e) {
|
||||
beanCreationException = e;
|
||||
}
|
||||
Throwable parentCause = beanCreationException.getCause().getCause();
|
||||
assertEquals(IllegalArgumentException.class, parentCause.getClass());
|
||||
Throwable rootCause = ((IllegalArgumentException) parentCause).getCause();
|
||||
Throwable rootCause = beanCreationException.getRootCause();
|
||||
assertEquals(UnsupportedEncodingException.class, rootCause.getClass());
|
||||
}
|
||||
|
||||
|
||||
@@ -108,9 +108,7 @@ public class ConsoleOutboundChannelAdapterParserTests {
|
||||
catch (BeanCreationException e) {
|
||||
beanCreationException = e;
|
||||
}
|
||||
Throwable parentCause = beanCreationException.getCause().getCause();
|
||||
assertEquals(IllegalArgumentException.class, parentCause.getClass());
|
||||
Throwable rootCause = ((IllegalArgumentException) parentCause).getCause();
|
||||
Throwable rootCause = beanCreationException.getRootCause();
|
||||
assertEquals(UnsupportedEncodingException.class, rootCause.getClass());
|
||||
}
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
http://www.springframework.org/schema/integration/stream
|
||||
http://www.springframework.org/schema/integration/stream/spring-integration-stream-1.0.xsd">
|
||||
|
||||
<stdin-channel-adapter id="adapterWithDefaultCharset"/>
|
||||
<stdin-channel-adapter id="adapterWithDefaultCharset" auto-startup="false"/>
|
||||
|
||||
<stdin-channel-adapter id="adapterWithProvidedCharset" charset="UTF-8"/>
|
||||
<stdin-channel-adapter id="adapterWithProvidedCharset" charset="UTF-8" auto-startup="false"/>
|
||||
|
||||
</beans:beans>
|
||||
Reference in New Issue
Block a user