Skip to content

Commit 00bf128

Browse files
committed
remove old test
1 parent ce3fe65 commit 00bf128

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

paper-server/src/test/java/org/bukkit/PerMaterialTest.java

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
package org.bukkit;
22

3-
import static org.bukkit.support.MatcherAssert.*;
4-
import static org.hamcrest.Matchers.*;
5-
import static org.junit.jupiter.api.Assertions.*;
6-
7-
import net.minecraft.core.component.DataComponents;
83
import org.bukkit.block.data.BlockData;
9-
import org.bukkit.craftbukkit.util.CraftMagicNumbers;
10-
import org.bukkit.enchantments.EnchantmentTarget;
114
import org.bukkit.material.MaterialData;
125
import org.bukkit.support.environment.AllFeatures;
136
import org.junit.jupiter.api.Disabled;
147
import org.junit.jupiter.params.ParameterizedTest;
158
import org.junit.jupiter.params.provider.EnumSource;
169

10+
import static org.junit.jupiter.api.Assertions.assertFalse;
11+
import static org.junit.jupiter.api.Assertions.assertNotNull;
12+
import static org.junit.jupiter.api.Assertions.assertTrue;
13+
1714
@AllFeatures
1815
public class PerMaterialTest {
1916

@@ -30,16 +27,6 @@ public void isTransparent(Material material) {
3027
}
3128
}
3229

33-
@ParameterizedTest
34-
@EnumSource(value = Material.class, names = "LEGACY_.*", mode = EnumSource.Mode.MATCH_NONE)
35-
public void usesDurability(Material material) {
36-
if (!material.isBlock()) {
37-
assertThat(EnchantmentTarget.BREAKABLE.includes(material), is(CraftMagicNumbers.getItem(material).components().getOrDefault(DataComponents.MAX_DAMAGE, 0) > 0));
38-
} else {
39-
assertFalse(EnchantmentTarget.BREAKABLE.includes(material));
40-
}
41-
}
42-
4330
@ParameterizedTest
4431
@EnumSource(value = Material.class, names = "LEGACY_.*", mode = EnumSource.Mode.MATCH_NONE)
4532
public void testBlockDataCreation(Material material) {

0 commit comments

Comments
 (0)