mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 08:27:43 +01:00
Test style
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
49a69d353e
commit
acd3345fc9
@ -121,7 +121,7 @@ public class ItemTest {
|
|||||||
assertEquals(lore, item.getLore());
|
assertEquals(lore, item.getLore());
|
||||||
var loreNbt = item.meta().toNBT().getCompound("display").<NBTString>getList("Lore");
|
var loreNbt = item.meta().toNBT().getCompound("display").<NBTString>getList("Lore");
|
||||||
assertNotNull(loreNbt);
|
assertNotNull(loreNbt);
|
||||||
assertEquals(loreNbt.getSize(), 1);
|
assertEquals(1, loreNbt.getSize());
|
||||||
assertEquals(lore, loreNbt.asListView().stream().map(line -> GsonComponentSerializer.gson().deserialize(line.getValue())).toList());
|
assertEquals(lore, loreNbt.asListView().stream().map(line -> GsonComponentSerializer.gson().deserialize(line.getValue())).toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -131,7 +131,7 @@ public class ItemTest {
|
|||||||
assertEquals(lore, item.getLore());
|
assertEquals(lore, item.getLore());
|
||||||
var loreNbt = item.meta().toNBT().getCompound("display").<NBTString>getList("Lore");
|
var loreNbt = item.meta().toNBT().getCompound("display").<NBTString>getList("Lore");
|
||||||
assertNotNull(loreNbt);
|
assertNotNull(loreNbt);
|
||||||
assertEquals(loreNbt.getSize(), 2);
|
assertEquals(2, loreNbt.getSize());
|
||||||
assertEquals(lore, loreNbt.asListView().stream().map(line -> GsonComponentSerializer.gson().deserialize(line.getValue())).toList());
|
assertEquals(lore, loreNbt.asListView().stream().map(line -> GsonComponentSerializer.gson().deserialize(line.getValue())).toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ public class ItemTest {
|
|||||||
assertEquals(lore, item.getLore());
|
assertEquals(lore, item.getLore());
|
||||||
var loreNbt = item.meta().toNBT().getCompound("display").<NBTString>getList("Lore");
|
var loreNbt = item.meta().toNBT().getCompound("display").<NBTString>getList("Lore");
|
||||||
assertNotNull(loreNbt);
|
assertNotNull(loreNbt);
|
||||||
assertEquals(loreNbt.getSize(), 1);
|
assertEquals(1, loreNbt.getSize());
|
||||||
assertEquals(lore, loreNbt.asListView().stream().map(line -> GsonComponentSerializer.gson().deserialize(line.getValue())).toList());
|
assertEquals(lore, loreNbt.asListView().stream().map(line -> GsonComponentSerializer.gson().deserialize(line.getValue())).toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user