Skip to content
Snippets Groups Projects
Commit 6963e887 authored by Thomas Mortagne's avatar Thomas Mortagne
Browse files

[misc] Make MockitoOldCore XWiki instane a spy instead of a mock

parent 9be10dbf
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ public void webRssDisplay() throws Exception
FeedPlugin plugin = new FeedPlugin("feed", FeedPlugin.class.getName(), context);
FeedPluginApi pluginApi = new FeedPluginApi(plugin, context);
when(xwiki.getPluginApi("feed", context)).thenReturn(pluginApi);
doReturn(pluginApi).when(xwiki).getPluginApi("feed", context);
// Render the page to test
String xml = renderPage(new DocumentReference("xwiki", "Main", "WebRss"));
......
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