|
22 | 22 | import java.util.Arrays; |
23 | 23 |
|
24 | 24 | import static fr.xephi.authme.service.BukkitServiceTestHelper.setBukkitServiceToScheduleSyncTaskFromOptionallyAsyncTask; |
25 | | -import static org.hamcrest.Matchers.equalTo; |
26 | 25 | import static org.hamcrest.MatcherAssert.assertThat; |
| 26 | +import static org.hamcrest.Matchers.equalTo; |
27 | 27 | import static org.mockito.ArgumentMatchers.any; |
28 | | -import static org.mockito.ArgumentMatchers.anyString; |
29 | 28 | import static org.mockito.BDDMockito.given; |
30 | 29 | import static org.mockito.Mockito.doAnswer; |
31 | 30 | import static org.mockito.Mockito.mock; |
@@ -328,30 +327,6 @@ public void shouldTeleportAccordingToPlayerAuthAndPlayerWorldAsFallback() { |
328 | 327 | assertCorrectLocation(locationCaptor.getValue(), auth, world); |
329 | 328 | } |
330 | 329 |
|
331 | | - @Test |
332 | | - public void shouldTeleportWithLimboPlayerIfAuthYCoordIsNotSet() { |
333 | | - // given |
334 | | - given(settings.getProperty(RestrictionSettings.TELEPORT_UNAUTHED_TO_SPAWN)).willReturn(true); |
335 | | - given(settings.getProperty(RestrictionSettings.SAVE_QUIT_LOCATION)).willReturn(true); |
336 | | - |
337 | | - PlayerAuth auth = createAuthWithLocation(); |
338 | | - auth.setQuitLocY(0.0); |
339 | | - auth.setWorld("authWorld"); |
340 | | - Player player = mock(Player.class); |
341 | | - given(player.isOnline()).willReturn(true); |
342 | | - LimboPlayer limbo = mock(LimboPlayer.class); |
343 | | - Location location = mockLocation(); |
344 | | - given(limbo.getLocation()).willReturn(location); |
345 | | - setBukkitServiceToScheduleSyncTaskFromOptionallyAsyncTask(bukkitService); |
346 | | - |
347 | | - // when |
348 | | - teleportationService.teleportOnLogin(player, auth, limbo); |
349 | | - |
350 | | - // then |
351 | | - verify(player).teleport(location); |
352 | | - verify(bukkitService, never()).getWorld(anyString()); |
353 | | - } |
354 | | - |
355 | 330 | @Test |
356 | 331 | public void shouldTeleportWithLimboPlayerIfSaveQuitLocIsDisabled() { |
357 | 332 | // given |
|
0 commit comments