summaryrefslogtreecommitdiffstats
path: root/src/test/java/org/bukkit
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2014-12-11 19:38:09 +0000
committerThinkofdeath <thinkofdeath@spigotmc.org>2014-12-11 19:38:09 +0000
commit84699b36a81800a052ed1fc7433c55dcedfd02ca (patch)
tree7014e8d3cdfecccc6c3a95641f9045fd546f32e0 /src/test/java/org/bukkit
parentfe41b017ca7b4ec872a4e5a7681750fad545868f (diff)
downloadcraftbukkit-84699b36a81800a052ed1fc7433c55dcedfd02ca.tar
craftbukkit-84699b36a81800a052ed1fc7433c55dcedfd02ca.tar.gz
craftbukkit-84699b36a81800a052ed1fc7433c55dcedfd02ca.tar.lz
craftbukkit-84699b36a81800a052ed1fc7433c55dcedfd02ca.tar.xz
craftbukkit-84699b36a81800a052ed1fc7433c55dcedfd02ca.zip
Rewrite book handling, Fixes SPIGOT-182 and part of SPIGOT-164
Diffstat (limited to 'src/test/java/org/bukkit')
-rw-r--r--src/test/java/org/bukkit/craftbukkit/inventory/ItemMetaTest.java10
1 files changed, 10 insertions, 0 deletions
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) {