mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 23:46:57 +01:00
fce9b199e3
Static methods are death to testability. However, irrelevant static methods can be negotiated with until a later time in which they can be removed. When instantiating a new Permission object, static calls are made to the Bukkit class during a recalculatePermissibles logic path. This recalculatePermissibles call should probably be moved appropriately, but until the time such testing can be accomplished itself, these tests work around that situation by simply verifying the static Bukkit server references are satisfied since what is called as a result is irrelevant currently. This commit also updates a few other tests for PluginManagerTest to work towards the standard of using the Hamcrest unit testing library. By: EdGruberman <ed@rjump.com> |
||
---|---|---|
.. | ||
java/org/bukkit |