Commits

md_5 authored f48739cae89
Add tests for material creative categories
No tags

src/test/java/org/bukkit/PerMaterialTest.java

Modified
279 279 @Test
280 280 public void testBlockDataClass() {
281 281 if (material.isBlock()) {
282 282 Class<?> expectedClass = material.data;
283 283 if (expectedClass != MaterialData.class) {
284 284 BlockData blockData = Bukkit.createBlockData(material);
285 285 assertTrue(expectedClass + " <> " + blockData.getClass(), expectedClass.isInstance(blockData));
286 286 }
287 287 }
288 288 }
289 +
290 + @Test
291 + public void testCreativeCategory() {
292 + if (material.isItem()) {
293 + material.getCreativeCategory();
294 + }
295 + }
289 296 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut