mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-12 05:44:02 +01:00
aad5239ba3
plugin.getLogger() is a final class and so cannot be mocked. It was making development of tests very hard. By making three logging methods in BSkyBlock.java, they default to do nothing when BSkyBlock is mocked. Previously, every time there was a use of logger in testing it was throwing NPE's because plugin.getLogger() was returning null and the getLogger() method could not be made not null by mocking because it was final (in JavaPlugin). |
||
---|---|---|
.. | ||
exception | ||
Addon.java | ||
AddonClassLoader.java | ||
AddonDescription.java | ||
AddonInterface.java | ||
AddonState.java |