Fixes tests.

I made pasting the clipboard async as well so this affected the test.
This commit is contained in:
tastybento 2019-01-01 14:11:41 -08:00
parent f475ebf3d2
commit 9b44dbb113

View File

@ -326,9 +326,8 @@ public class ClipboardTest {
cb.setPos2(loc2);
cb.copy(user, false);
cb.pasteClipboard(loc);
// This is set just once because the coords of the block are always the same
Mockito.verify(block).setBlockData(Mockito.any());
// TODO Verify the entities are spawned
// Verify the task is run
Mockito.verify(sched).runTaskTimer(Mockito.any(), Mockito.any(Runnable.class), Mockito.eq(0L), Mockito.eq(1L));
// Player should NOT spawn!!
Mockito.verify(world, Mockito.never()).spawnEntity(Mockito.eq(null), Mockito.eq(EntityType.PLAYER));
}