Hi,

I have been check out Apache Shiro 1.2.1. However, this will not compile:

BeanTypeListenerTest.java

expect(injector.getInstance(BeanTypeListener.MAP_KEY)).andReturn(Collections.EMPTY_MAP).anyTimes();

The method andReturn(capture#1-of ?) in the type
IExpectationSetters<capture#1-of ?> is not applicable for the arguments
(Map)

SimpleFilterChainResolverTest.java

expect(injector.getInstance(key2a)).andReturn(filter2a);
The method andReturn(capture#7-of ? extends Filter) in the type
IExpectationSetters<capture#7-of ?
 extends Filter> is not applicable for the arguments (Filter)

expect(injector.getInstance(key2b)).andReturn(filter2b);
The method andReturn(capture#8-of ? extends Filter) in the type
IExpectationSetters<capture#8-of ?
 extends Filter> is not applicable for the arguments (Filter)

Any help appreciated!

Thanks in advance,

Peter

Reply via email to