Skip to content

1.0.0-Release

Compare
Choose a tag to compare
@github-actions github-actions released this 15 Feb 01:21
· 30 commits to master since this release
MAJOR

 SpigotTester is not longer loaded in the POSTWORD (onLoad) method since
 Bukkit not allow to register events/commands before plugin is fully loaded.
 SpiogtTester will be waiting for all others plugins to be loaded then launch tests

  SpigotTesterSetup new interface
    could be applied on JavaPlugin class
    contains onSpigotTesterSetup(TestRunnerBuilder builder) method
    to configure tests and inject parameters
    by parameters I mean objects that will be available during the tests

  SpigotTest has been changed from Interface to abstract Class
  SpigotTest class offers
   - creating fake players
   - asserting objects
   - getting parameters via constructor or getParameter(Class<T> clazz) method

   Fake players
     can be created via method SpigotTest::addPlayer() after adding
     fake player automatically join to server when tests for certain class
     will be done player is automatically disconnected