-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
6f9c358
commit f36f663
Showing
6 changed files
with
69 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.