mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-20 22:31:36 +01:00
Use any() which now is a varArg tester. Remove deprecation
This commit is contained in:
parent
df45fca562
commit
2c8db2a797
@ -78,7 +78,6 @@ public class IslandCreateCommandTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
@Before
|
@Before
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
// Set up plugin
|
// Set up plugin
|
||||||
@ -99,7 +98,7 @@ public class IslandCreateCommandTest {
|
|||||||
when(user.getUniqueId()).thenReturn(uuid);
|
when(user.getUniqueId()).thenReturn(uuid);
|
||||||
when(user.getPlayer()).thenReturn(player);
|
when(user.getPlayer()).thenReturn(player);
|
||||||
when(user.hasPermission(Mockito.anyString())).thenReturn(true);
|
when(user.hasPermission(Mockito.anyString())).thenReturn(true);
|
||||||
when(user.getTranslation(Mockito.anyVararg())).thenAnswer((Answer<String>) invocation -> invocation.getArgument(0, String.class));
|
when(user.getTranslation(Mockito.any())).thenAnswer((Answer<String>) invocation -> invocation.getArgument(0, String.class));
|
||||||
User.setPlugin(plugin);
|
User.setPlugin(plugin);
|
||||||
// Set up user already
|
// Set up user already
|
||||||
User.getInstance(player);
|
User.getInstance(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user