INT-1421 - fixed the bug in test

This commit is contained in:
Oleg Zhurakousky
2010-09-03 16:41:46 +00:00
parent 74c6ef95ec
commit dbf66605d9
2 changed files with 69 additions and 1 deletions

View File

@@ -114,7 +114,7 @@ public class GlobalChannelInterceptorTests {
DirectFieldAccessor iAccessor = new DirectFieldAccessor(iList);
List<SampleInterceptor> interceptorList = (List<SampleInterceptor>) iAccessor.getPropertyValue("interceptors");
List<String> interceptorNames = new ArrayList<String>();
for (Object interceptor: interceptorList){
for (ChannelInterceptor interceptor: interceptorList){
interceptorNames.add(interceptor.toString());
}
Assert.assertTrue(interceptorNames.contains("interceptor-ten"));