From acd3345fc9834afa82e3ed22f2006eeff371bc72 Mon Sep 17 00:00:00 2001 From: TheMode Date: Mon, 25 Apr 2022 06:28:58 +0200 Subject: [PATCH] Test style Signed-off-by: TheMode --- src/test/java/net/minestom/server/item/ItemTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/net/minestom/server/item/ItemTest.java b/src/test/java/net/minestom/server/item/ItemTest.java index 136956000..76d027c95 100644 --- a/src/test/java/net/minestom/server/item/ItemTest.java +++ b/src/test/java/net/minestom/server/item/ItemTest.java @@ -121,7 +121,7 @@ public class ItemTest { assertEquals(lore, item.getLore()); var loreNbt = item.meta().toNBT().getCompound("display").getList("Lore"); assertNotNull(loreNbt); - assertEquals(loreNbt.getSize(), 1); + assertEquals(1, loreNbt.getSize()); assertEquals(lore, loreNbt.asListView().stream().map(line -> GsonComponentSerializer.gson().deserialize(line.getValue())).toList()); } @@ -131,7 +131,7 @@ public class ItemTest { assertEquals(lore, item.getLore()); var loreNbt = item.meta().toNBT().getCompound("display").getList("Lore"); assertNotNull(loreNbt); - assertEquals(loreNbt.getSize(), 2); + assertEquals(2, loreNbt.getSize()); assertEquals(lore, loreNbt.asListView().stream().map(line -> GsonComponentSerializer.gson().deserialize(line.getValue())).toList()); } @@ -141,7 +141,7 @@ public class ItemTest { assertEquals(lore, item.getLore()); var loreNbt = item.meta().toNBT().getCompound("display").getList("Lore"); assertNotNull(loreNbt); - assertEquals(loreNbt.getSize(), 1); + assertEquals(1, loreNbt.getSize()); assertEquals(lore, loreNbt.asListView().stream().map(line -> GsonComponentSerializer.gson().deserialize(line.getValue())).toList()); }