From 84699b36a81800a052ed1fc7433c55dcedfd02ca Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Thu, 11 Dec 2014 19:38:09 +0000 Subject: Rewrite book handling, Fixes SPIGOT-182 and part of SPIGOT-164 --- .../java/org/bukkit/craftbukkit/inventory/ItemMetaTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/test/java/org/bukkit') diff --git a/src/test/java/org/bukkit/craftbukkit/inventory/ItemMetaTest.java b/src/test/java/org/bukkit/craftbukkit/inventory/ItemMetaTest.java index 10682e76..71a34576 100644 --- a/src/test/java/org/bukkit/craftbukkit/inventory/ItemMetaTest.java +++ b/src/test/java/org/bukkit/craftbukkit/inventory/ItemMetaTest.java @@ -138,6 +138,16 @@ public class ItemMetaTest extends AbstractTestingBase { return cleanStack; } }, + new StackProvider(Material.WRITTEN_BOOK) { + @Override ItemStack operate(final ItemStack cleanStack) { + final BookMeta meta = (BookMeta) cleanStack.getItemMeta(); + meta.setAuthor("Some author"); + meta.setPages("Page 1", "Page 2"); + meta.setTitle("A title"); + cleanStack.setItemMeta(meta); + return cleanStack; + } + }, /* Skulls rely on a running server instance new StackProvider(Material.SKULL_ITEM) { @Override ItemStack operate(final ItemStack cleanStack) { -- cgit v1.2.3