mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-09 01:37:37 +01:00
remove unnecessary stub
This commit is contained in:
parent
47ca7b821b
commit
28585dd6f9
@ -85,12 +85,6 @@ public class TestInstanceCreator {
|
|||||||
"com.onarandombox.MultiverseCore.MultiverseCore"));
|
"com.onarandombox.MultiverseCore.MultiverseCore"));
|
||||||
when(pdf.getAuthors()).thenReturn(new ArrayList<String>());
|
when(pdf.getAuthors()).thenReturn(new ArrayList<String>());
|
||||||
core = PowerMockito.spy(new MultiverseCore(mockPluginLoader, pdf, pluginDirectory, new File(pluginDirectory, "testPluginFile")));
|
core = PowerMockito.spy(new MultiverseCore(mockPluginLoader, pdf, pluginDirectory, new File(pluginDirectory, "testPluginFile")));
|
||||||
PowerMockito.doAnswer(new Answer<Void>() {
|
|
||||||
@Override
|
|
||||||
public Void answer(InvocationOnMock invocation) throws Throwable {
|
|
||||||
return null; // don't run metrics in tests
|
|
||||||
}
|
|
||||||
}).when(core, "setupMetrics");
|
|
||||||
|
|
||||||
// Let's let all MV files go to bin/test
|
// Let's let all MV files go to bin/test
|
||||||
doReturn(pluginDirectory).when(core).getDataFolder();
|
doReturn(pluginDirectory).when(core).getDataFolder();
|
||||||
|
Loading…
Reference in New Issue
Block a user