Now mocking plugin.getLogger() in the tests.
Fixes the test issues with AllPay.
This commit is contained in:
parent
ebe44ed99e
commit
0fb33d12d6
|
@ -76,6 +76,7 @@ public class TestInstanceCreator {
|
|||
when(pdf.getAuthors()).thenReturn(new ArrayList<String>());
|
||||
doReturn(pdf).when(core).getDescription();
|
||||
doReturn(true).when(core).isEnabled();
|
||||
doReturn(Util.logger).when(core).getLogger();
|
||||
core.setServerFolder(serverDirectory);
|
||||
|
||||
// Add Core to the list of loaded plugins
|
||||
|
|
Loading…
Reference in New Issue