From 0f6466841d81ef63ca6be353eea75fc43613efec Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Fri, 3 Sep 2010 16:50:05 +0000 Subject: [PATCH] INT-1421 - actually did fixed the bug in test --- .../channel/interceptor/GlobalChannelInterceptorTests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-integration-core/src/test/java/org/springframework/integration/channel/interceptor/GlobalChannelInterceptorTests.java b/spring-integration-core/src/test/java/org/springframework/integration/channel/interceptor/GlobalChannelInterceptorTests.java index d2b04cf079..fc5470dd80 100644 --- a/spring-integration-core/src/test/java/org/springframework/integration/channel/interceptor/GlobalChannelInterceptorTests.java +++ b/spring-integration-core/src/test/java/org/springframework/integration/channel/interceptor/GlobalChannelInterceptorTests.java @@ -112,11 +112,12 @@ public class GlobalChannelInterceptorTests { DirectFieldAccessor cAccessor = new DirectFieldAccessor(channel); Object iList = cAccessor.getPropertyValue("interceptors"); DirectFieldAccessor iAccessor = new DirectFieldAccessor(iList); - List interceptorList = (List) iAccessor.getPropertyValue("interceptors"); + List interceptorList = (List) iAccessor.getPropertyValue("interceptors"); List interceptorNames = new ArrayList(); - for (ChannelInterceptor interceptor: interceptorList){ + for (GlobalChannelInterceptorWrapper interceptor : interceptorList) { interceptorNames.add(interceptor.toString()); } + Assert.assertTrue(interceptorNames.contains("interceptor-ten")); Assert.assertTrue(interceptorNames.contains("interceptor-eleven")); }