Fixed test failures.
This commit is contained in:
parent
aff6fcec22
commit
10d8352f1c
|
@ -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())
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue