Now mocking plugin.getLogger() in the tests.

Fixes the test issues with AllPay.
This commit is contained in:
main() 2013-03-02 12:31:31 +01:00
parent ebe44ed99e
commit 0fb33d12d6
1 changed files with 1 additions and 0 deletions

View File

@ -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