mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 19:55:17 +01:00
Fixes tests.
I made pasting the clipboard async as well so this affected the test.
This commit is contained in:
parent
f475ebf3d2
commit
9b44dbb113
@ -326,9 +326,8 @@ public class ClipboardTest {
|
|||||||
cb.setPos2(loc2);
|
cb.setPos2(loc2);
|
||||||
cb.copy(user, false);
|
cb.copy(user, false);
|
||||||
cb.pasteClipboard(loc);
|
cb.pasteClipboard(loc);
|
||||||
// This is set just once because the coords of the block are always the same
|
// Verify the task is run
|
||||||
Mockito.verify(block).setBlockData(Mockito.any());
|
Mockito.verify(sched).runTaskTimer(Mockito.any(), Mockito.any(Runnable.class), Mockito.eq(0L), Mockito.eq(1L));
|
||||||
// TODO Verify the entities are spawned
|
|
||||||
// Player should NOT spawn!!
|
// Player should NOT spawn!!
|
||||||
Mockito.verify(world, Mockito.never()).spawnEntity(Mockito.eq(null), Mockito.eq(EntityType.PLAYER));
|
Mockito.verify(world, Mockito.never()).spawnEntity(Mockito.eq(null), Mockito.eq(EntityType.PLAYER));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user