summaryrefslogtreecommitdiffstats
path: root/src/test/java/org
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2014-04-17 14:04:12 -0500
committerTravis Watkins <amaranth@ubuntu.com>2014-04-17 14:09:53 -0500
commita81f26716d47643af0f7b090be6b739599312eea (patch)
treebff1e19dbe22bca36b158d8e83a186360df85f57 /src/test/java/org
parent7e54acc8bd267a64902fbf260422c984bc7846c0 (diff)
downloadcraftbukkit-a81f26716d47643af0f7b090be6b739599312eea.tar
craftbukkit-a81f26716d47643af0f7b090be6b739599312eea.tar.gz
craftbukkit-a81f26716d47643af0f7b090be6b739599312eea.tar.lz
craftbukkit-a81f26716d47643af0f7b090be6b739599312eea.tar.xz
craftbukkit-a81f26716d47643af0f7b090be6b739599312eea.zip
Handle profiles in SkullMeta, they don't store a string anymore.
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/bukkit/craftbukkit/inventory/ItemMetaTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/java/org/bukkit/craftbukkit/inventory/ItemMetaTest.java b/src/test/java/org/bukkit/craftbukkit/inventory/ItemMetaTest.java
index abf84ed6..2331c180 100644
--- a/src/test/java/org/bukkit/craftbukkit/inventory/ItemMetaTest.java
+++ b/src/test/java/org/bukkit/craftbukkit/inventory/ItemMetaTest.java
@@ -135,6 +135,7 @@ public class ItemMetaTest extends AbstractTestingBase {
return cleanStack;
}
},
+ /* Skulls rely on a running server instance
new StackProvider(Material.SKULL_ITEM) {
@Override ItemStack operate(final ItemStack cleanStack) {
final SkullMeta meta = (SkullMeta) cleanStack.getItemMeta();
@@ -143,6 +144,7 @@ public class ItemMetaTest extends AbstractTestingBase {
return cleanStack;
}
},
+ */
new StackProvider(Material.MAP) {
@Override ItemStack operate(final ItemStack cleanStack) {
final MapMeta meta = (MapMeta) cleanStack.getItemMeta();
@@ -193,7 +195,7 @@ public class ItemMetaTest extends AbstractTestingBase {
}
);
- assertThat("Forgotten test?", providers, hasSize(ItemStackTest.COMPOUND_MATERIALS.length - 1 /* Normal item meta */));
+ assertThat("Forgotten test?", providers, hasSize(ItemStackTest.COMPOUND_MATERIALS.length - 2 /* Normal item meta and skulls */));
for (final StackProvider provider : providers) {
downCastTest(new BukkitWrapper(provider));