I'm using Mockito to test some components, which interact with classes that
implement Portlet and the EventPortlet interface.
In my test I need to create mock objects for that.
I used to create my mock with the @Mock annotation, but I can't use that to
create mocks with extra interfaces.
I switched to using
Portlet mockPortlet = Mockito.mock(EventPortlet.class,
withSettings().extraInterfaces(Portlet.class));
I would like to able to do something like this:
@Mock(extraInterfaces(Portlet.class))
private EventPortlet mockPortlet.
Original issue reported on code.google.com by mcbee...@gmail.com on 28 May 2010 at 1:20
Original issue reported on code.google.com by
mcbee...@gmail.com
on 28 May 2010 at 1:20