geforkt von Mirrors/Paper
#665: Add test for Material#getCraftingRemainingItem()
Dieser Commit ist enthalten in:
Ursprung
cfeef75cd9
Commit
aae46f82ea
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren