mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-12-30 21:07:47 +01:00
Prevent errors in TryToCompleteTest
Note - tests still fail.
This commit is contained in:
parent
7126acfcfa
commit
018455f8f6
@ -202,7 +202,10 @@ public class TryToCompleteTest {
|
||||
// User has all perms by default
|
||||
when(user.hasPermission(anyString())).thenReturn(true);
|
||||
when(user.getPlayer()).thenReturn(player);
|
||||
UUID uniqueId = UUID.randomUUID();
|
||||
when(user.getUniqueId()).thenReturn(uniqueId);
|
||||
when(user.getTranslation(Mockito.anyString())).thenAnswer((Answer<String>) invocation -> invocation.getArgument(0, String.class));
|
||||
when(user.getTranslationOrNothing(Mockito.anyString())).thenAnswer((Answer<String>) invocation -> invocation.getArgument(0, String.class));
|
||||
when(user.getName()).thenReturn("tastybento");
|
||||
@Nullable
|
||||
Location userLoc = mock(Location.class);
|
||||
|
Loading…
Reference in New Issue
Block a user