diff options
Diffstat (limited to 'src/test/java/org/bukkit')
-rw-r--r-- | src/test/java/org/bukkit/BlockDataTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/java/org/bukkit/BlockDataTest.java b/src/test/java/org/bukkit/BlockDataTest.java index bd2c249b..e43de765 100644 --- a/src/test/java/org/bukkit/BlockDataTest.java +++ b/src/test/java/org/bukkit/BlockDataTest.java @@ -51,6 +51,16 @@ public class BlockDataTest extends AbstractTestingBase { CraftBlockData.newData(Material.CAKE, cakeTest.toString()); } + @Test(expected = IllegalArgumentException.class) + public void testItem() { + CraftBlockData.newData(Material.DIAMOND_AXE, null); + } + + @Test(expected = IllegalArgumentException.class) + public void testItemParse() { + CraftBlockData.newData(null, "minecraft:diamond_axe"); + } + @Test public void testClone() { Cake cakeTest = (Cake) CraftBlockData.fromData(Blocks.CAKE.getBlockData().set(BlockCake.BITES, 3)); |