diff --git a/src/test/java/net/minestom/server/instance/PaletteTest.java b/src/test/java/net/minestom/server/instance/PaletteTest.java index b09e2615b..0d612695a 100644 --- a/src/test/java/net/minestom/server/instance/PaletteTest.java +++ b/src/test/java/net/minestom/server/instance/PaletteTest.java @@ -136,6 +136,23 @@ public class PaletteTest { @Test public void bulkAll() { + var palettes = testPalettes(); + for (Palette palette : palettes) { + // Fill all entries + palette.setAll((x, y, z) -> x + y + z + 1); + palette.getAll((x, y, z, value) -> assertEquals(x + y + z + 1, value)); + + // Replacing + palette.replaceAll((x, y, z, value) -> { + assertEquals(x + y + z + 1, value); + return x + y + z + 2; + }); + palette.getAll((x, y, z, value) -> assertEquals(x + y + z + 2, value)); + } + } + + @Test + public void bulkAllOrder() { var palettes = testPalettes(); for (Palette palette : palettes) { AtomicInteger count = new AtomicInteger();