#665: Add test for Material#getCraftingRemainingItem()

This commit is contained in:
ben 2020-05-28 19:31:27 +10:00 committed by md_5
parent cfeef75cd9
commit aae46f82ea

View file

@ -245,4 +245,14 @@ public class PerMaterialTest extends AbstractTestingBase {
assertNotNull(material.createBlockData());
}
}
@Test
public void testCraftingRemainingItem() {
if (material.isItem()) {
Item expectedItem = CraftMagicNumbers.getItem(material).p(); // PAIL rename p() -> getCraftingRemainingItem()
Material expected = expectedItem == null ? null : CraftMagicNumbers.getMaterial(expectedItem);
assertThat(material.getCraftingRemainingItem(), is(expected));
}
}
}