Skip to content
Snippets Groups Projects
Commit 8f473920 authored by Vincent Massol's avatar Vincent Massol
Browse files

[Msic] Fixed test failing because of the refactoring introduced in...

[Msic] Fixed test failing because of the refactoring introduced in XCOMMONS-733 (Don't mock Provider by default)
parent f5fe8aa3
No related branches found
No related tags found
No related merge requests found
...@@ -68,8 +68,8 @@ public class MailStorageScriptServiceTest ...@@ -68,8 +68,8 @@ public class MailStorageScriptServiceTest
@Before @Before
public void setUp() throws Exception public void setUp() throws Exception
{ {
Provider<ComponentManager> componentManagerProvider = this.mocker.getInstance(new DefaultParameterizedType( Provider<ComponentManager> componentManagerProvider = this.mocker.registerMockComponent(
null, Provider.class, ComponentManager.class), "context"); new DefaultParameterizedType(null, Provider.class, ComponentManager.class), "context");
when(componentManagerProvider.get()).thenReturn(this.mocker); when(componentManagerProvider.get()).thenReturn(this.mocker);
Execution execution = this.mocker.getInstance(Execution.class); Execution execution = this.mocker.getInstance(Execution.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