Skip to content

Commit 6b20175

Browse files
committed
Use a typed matcher for the first argument
So Mockito can unambiguously match the method signature?
1 parent da1c451 commit 6b20175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/world/bentobox/bentobox/listeners/flags/protection/LockAndBanListenerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ public void testPlayerMoveIntoLockedIsland() {
531531
when(player.getLocation()).thenReturn(outside);
532532

533533
// Lock island for player
534-
when(island.isAllowed(any(), eq(Flags.LOCK))).thenReturn(false);
534+
when(island.isAllowed(any(User.class), eq(Flags.LOCK))).thenReturn(false);
535535

536536
// Move player
537537
PlayerMoveEvent e = new PlayerMoveEvent(player, outside, inside);

0 commit comments

Comments
 (0)