Fix some unchecked warnings in tests

This commit is contained in:
Artem Bilan
2020-10-07 11:54:21 -04:00
parent bc63a0dac8
commit d8dd19106c
2 changed files with 3 additions and 1 deletions

View File

@@ -292,7 +292,8 @@ public class ChainParserTests {
assertThat(testConsumer.getLastMessage()).isSameAs(successMessage);
}
@Test //INT-2275, INT-2958
@Test
@SuppressWarnings("unchecked")
public void chainWithLoggingChannelAdapter() {
LogAccessor logger = mock(LogAccessor.class);
final AtomicReference<Supplier<? extends CharSequence>> log = new AtomicReference<>();

View File

@@ -72,6 +72,7 @@ public class DownstreamExceptionTests {
private PollableChannel errors;
@Test
@SuppressWarnings("unchecked")
public void testNoErrorChannel() throws Exception {
service.n = 0;
LogAccessor logger = spy(TestUtils.getPropertyValue(noErrorChannel, "logger", LogAccessor.class));