Skip to content

Commit ea75cbb

Browse files
committed
Fix test
1 parent cd4d920 commit ea75cbb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Insights-API/src/test/java/dev/frankheijden/insights/api/util/LazyChunkPartRadiusIteratorTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class LazyChunkPartRadiusIteratorTest {
2424
@MethodSource("radiusGenerator")
2525
void determineChunkParts(int chunkX, int chunkZ, int radius) {
2626
World world = Mockito.mock(World.class);
27+
Mockito.when(world.getUID()).thenReturn(java.util.UUID.randomUUID());
28+
Mockito.when(world.getMinHeight()).thenReturn(-64);
29+
Mockito.when(world.getMaxHeight()).thenReturn(320);
2730

2831
int edge = (2 * radius) + 1;
2932
int chunkCount = edge * edge;

0 commit comments

Comments
 (0)