Fixed test failures.

This commit is contained in:
tastybento 2022-04-16 15:03:11 -07:00
parent aff6fcec22
commit 10d8352f1c
2 changed files with 2 additions and 1 deletions

View File

@ -637,7 +637,7 @@ public class TryToComplete
private ChallengeResult checkIfCanCompleteChallenge(int maxTimes) private ChallengeResult checkIfCanCompleteChallenge(int maxTimes)
{ {
ChallengeResult result; ChallengeResult result;
ChallengeType type = this.challenge.getChallengeType(); ChallengeType type = this.challenge.getChallengeType();
// Check the world // Check the world
if (!this.challenge.isDeployed()) if (!this.challenge.isDeployed())

View File

@ -176,6 +176,7 @@ public class TryToCompleteTest {
Optional<GameModeAddon> optionalGameMode = Optional.of(gameMode); Optional<GameModeAddon> optionalGameMode = Optional.of(gameMode);
when(iwm.getAddon(any())).thenReturn(optionalGameMode); when(iwm.getAddon(any())).thenReturn(optionalGameMode);
when(iwm.getIslandDistance(any())).thenReturn(400); when(iwm.getIslandDistance(any())).thenReturn(400);
when(iwm.inWorld(any(World.class))).thenReturn(true);
// Island Manager // Island Manager
when(addon.getIslands()).thenReturn(im); when(addon.getIslands()).thenReturn(im);