mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
Fix PerMaterialTest skipping useful tests for certain blocks
This commit is contained in:
@@ -41,10 +41,6 @@ public class PerMaterialTest extends AbstractTestingBase {
|
||||
public static List<Object[]> data() {
|
||||
List<Object[]> list = Lists.newArrayList();
|
||||
for (Material material : Material.values()) {
|
||||
if (INVALIDATED_MATERIALS.contains(material)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
list.add(new Object[] {material});
|
||||
}
|
||||
return list;
|
||||
@@ -75,6 +71,8 @@ public class PerMaterialTest extends AbstractTestingBase {
|
||||
|
||||
@Test
|
||||
public void maxDurability() {
|
||||
if (INVALIDATED_MATERIALS.contains(material)) return;
|
||||
|
||||
if (material == Material.AIR) {
|
||||
assertThat((int) material.getMaxDurability(), is(0));
|
||||
} else if (material.isBlock()){
|
||||
@@ -85,6 +83,8 @@ public class PerMaterialTest extends AbstractTestingBase {
|
||||
|
||||
@Test
|
||||
public void maxStackSize() {
|
||||
if (INVALIDATED_MATERIALS.contains(material)) return;
|
||||
|
||||
final ItemStack bukkit = new ItemStack(material);
|
||||
final CraftItemStack craft = CraftItemStack.asCraftCopy(bukkit);
|
||||
if (material == Material.AIR) {
|
||||
|
Reference in New Issue
Block a user