Archived
0

using @SneakyThrows

This commit is contained in:
2018-12-17 11:46:05 +03:00
parent 4a77e2d2c4
commit 2e811a9d29

View File

@@ -1,5 +1,6 @@
package mc.world.anvil; package mc.world.anvil;
import lombok.SneakyThrows;
import mc.core.world.block.Block; import mc.core.world.block.Block;
import mc.core.world.block.BlockType; import mc.core.world.block.BlockType;
import mc.core.world.chunk.Chunk; import mc.core.world.chunk.Chunk;
@@ -7,8 +8,6 @@ import mc.core.world.chunk.ChunkSection;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.net.URISyntaxException;
import java.nio.file.Paths; import java.nio.file.Paths;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -18,7 +17,8 @@ class RegionTest {
private static Region region; private static Region region;
@BeforeAll @BeforeAll
static void before() throws URISyntaxException, IOException { @SneakyThrows
static void before() {
region = new Region(Paths.get(RegionTest.class.getResource("/region/r.0.0.mca").toURI()).toFile()); region = new Region(Paths.get(RegionTest.class.getResource("/region/r.0.0.mca").toURI()).toFile());
} }