Skip to content
Snippets Groups Projects
Commit f99eb421 authored by tmortagne's avatar tmortagne
Browse files

XCOMMONS-733: Don't mock Provider by default

* fix test
parent 20366c06
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ public class DefaultIconSetManagerTest
@Before
public void setUp() throws Exception
{
xcontextProvider = mocker.getInstance(new DefaultParameterizedType(null, Provider.class, XWikiContext.class));
xcontextProvider = mocker.registerMockComponent(XWikiContext.TYPE_PROVIDER);
xcontext = mock(XWikiContext.class);
when(xcontextProvider.get()).thenReturn(xcontext);
xwiki = mock(XWiki.class);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment