On Jul 5, 2010, at 10:30 AM, Asiri Rathnayake wrote:
> Hi,
>
>
>
>> As you can see in this second example, it's also possible to exclude some
>> @Requirement from being mocked if need be.
>>
>> I'd like that we agree to use this new test class from now on instead of
>> AbstractComponentTestCase (unless there are cases where it's not usable but
>> please discuss those use cases with me since maybe there are solutions to
>> improve AbstractMockingComponentTestCase).
>>
>
> How would one get a reference to a mocked @Requirement component? (for
> setting expectations).
getComponentManager().lookup(Role.class, hint);
getMockery().checking(new Expectations() {{ ....
Thanks
-Vincent
>
> +1 for the idea.
>
> Thanks.
>
> - Asiri
>
>
>>
>> Here's my +1
>>
>> Thanks
>> -Vincent
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs