Skip to content

Commit

Permalink
Fix error in test class.
Browse files Browse the repository at this point in the history
Note this does not fix the failing assertion.
  • Loading branch information
tastybento committed Apr 16, 2022
1 parent 2263dae commit 80f7480
Show file tree
Hide file tree
Showing 2 changed files with 409 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.api.addons.GameModeAddon;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.configuration.WorldSettings;
import world.bentobox.bentobox.api.localization.TextVariables;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
Expand Down Expand Up @@ -107,6 +108,10 @@ public void setUp() throws Exception {
Optional<GameModeAddon> optionalAddon = Optional.of(gameModeAddon);
when(iwm.getAddon(any())).thenReturn(optionalAddon);
when(plugin.getIWM()).thenReturn(iwm);

@NonNull
WorldSettings ws = new TestWorldSetting();
when(iwm.getWorldSettings(any())).thenReturn(ws);

// Game Mode Addon
@NonNull
Expand Down

0 comments on commit 80f7480

Please sign in to comment.