mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-22 17:07:34 +01:00
#665: Add test for Material#getCraftingRemainingItem()
This commit is contained in:
parent
cfeef75cd9
commit
aae46f82ea
@ -245,4 +245,14 @@ public class PerMaterialTest extends AbstractTestingBase {
|
|||||||
assertNotNull(material.createBlockData());
|
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));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user