INT-4498: StreamUtils -> FileCopyUtils
JIRA: https://jira.spring.io/browse/INT-4498 * Use `FileCopyUtils` instead of `StreamUtils` in test-cases when we deal with `InputStream` s and files resources. * Fix reflection-based tests with AOP to use an `ArrayList` access instead of `LinkedList` since an optimization in SF:6d6aa72e8f**Cherry-pick to 5.0.x and 4.3.x** (cherry picked from commita1f016a)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -82,7 +82,7 @@ public class DefaultOutboundChannelAdapterParserTests {
|
||||
assertEquals(Boolean.FALSE, TestUtils.getPropertyValue(adapter, "autoStartup"));
|
||||
MessageHandler handler = TestUtils.getPropertyValue(adapter, "handler", MessageHandler.class);
|
||||
assertTrue(AopUtils.isAopProxy(handler));
|
||||
assertThat(TestUtils.getPropertyValue(handler, "h.advised.advisors.first.item.advice"),
|
||||
assertThat(TestUtils.getPropertyValue(handler, "h.advised.advisors[0].advice"),
|
||||
Matchers.instanceOf(RequestHandlerRetryAdvice.class));
|
||||
|
||||
handler.handleMessage(new GenericMessage<>("foo"));
|
||||
|
||||
Reference in New Issue
Block a user