diff options
Diffstat (limited to 'src/test/java/org/bukkit')
-rw-r--r-- | src/test/java/org/bukkit/PerMaterialTest.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/java/org/bukkit/PerMaterialTest.java b/src/test/java/org/bukkit/PerMaterialTest.java index 98bd2fbb..57e779ec 100644 --- a/src/test/java/org/bukkit/PerMaterialTest.java +++ b/src/test/java/org/bukkit/PerMaterialTest.java @@ -215,4 +215,18 @@ public class PerMaterialTest extends AbstractTestingBase { assertFalse(material.isInteractable()); } } + + @Test + public void testBlockHardness() { + if (material.isBlock()) { + assertThat(material.getHardness(), is(CraftMagicNumbers.getBlock(material).strength)); + } + } + + @Test + public void testBlastResistance() { + if (material.isBlock()) { + assertThat(material.getBlastResistance(), is(CraftMagicNumbers.getBlock(material).k())); // PAIL getDurability + } + } } |