fix: ChunkDataPacketTest
This commit is contained in:
@@ -9,7 +9,6 @@ import mc.core.world.chunk.Chunk;
|
||||
import mc.core.world.chunk.ChunkSection;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -19,7 +18,6 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
import static org.mockito.Matchers.anyInt;
|
||||
import static org.mockito.Mockito.*;
|
||||
|
||||
@Disabled //FIXME
|
||||
class ChunkDataPacketTest {
|
||||
private static DumbChunkData expectedDumbChunkData;
|
||||
private static DumbChunkData actualDumbChunkData;
|
||||
@@ -45,8 +43,8 @@ class ChunkDataPacketTest {
|
||||
}
|
||||
|
||||
private static void verifyMock(Chunk chunk) {
|
||||
verify(chunk).getX();
|
||||
verify(chunk).getZ();
|
||||
verify(chunk, atLeast(1)).getX();
|
||||
verify(chunk, atLeast(1)).getZ();
|
||||
verify(chunk, times(256)).getBiome(anyInt(), anyInt());
|
||||
verify(chunk, atLeast(2)).getChunkSection(anyInt());
|
||||
}
|
||||
@@ -71,7 +69,7 @@ class ChunkDataPacketTest {
|
||||
@BeforeAll
|
||||
static void beforeClassTest() throws IOException {
|
||||
setupExpectedData();
|
||||
setupActualData(); // FIXME тест валится здесь
|
||||
setupActualData();
|
||||
}
|
||||
|
||||
private static Block createChestBlock(BlockType type, int x, int y, int z, int height) {
|
||||
|
||||
Reference in New Issue
Block a user