diff options
author | EdGruberman <ed@rjump.com> | 2013-03-11 01:39:14 -0700 |
---|---|---|
committer | EdGruberman <ed@rjump.com> | 2013-03-11 02:48:56 -0700 |
commit | a49a47eebdce821521109736bf5b043975cd90ed (patch) | |
tree | fd524cebd1aab459ca2b543b6e29807e268d1cf5 /pom.xml | |
parent | f6399fde39ddabe8bee437d6f99951e00392f964 (diff) | |
download | bukkit-a49a47eebdce821521109736bf5b043975cd90ed.tar bukkit-a49a47eebdce821521109736bf5b043975cd90ed.tar.gz bukkit-a49a47eebdce821521109736bf5b043975cd90ed.tar.lz bukkit-a49a47eebdce821521109736bf5b043975cd90ed.tar.xz bukkit-a49a47eebdce821521109736bf5b043975cd90ed.zip |
Test PluginManager.removePermission
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.
Diffstat (limited to 'pom.xml')
0 files changed, 0 insertions, 0 deletions