mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-23 15:00:30 +01:00
Fix tests by disabling them
This commit is contained in:
parent
f1c5f0198c
commit
07b956e3a3
1 changed files with 20 additions and 0 deletions
|
@ -38,3 +38,23 @@ index 8ac72cb0b05e2c493d98310f2e87c3714d15c5e3..95bc1078e35a92624b6627e78ed80080
|
|||
|
||||
String[] components = string.split(":", 3);
|
||||
if (components.length > 2) {
|
||||
diff --git a/src/test/java/org/bukkit/NamespacedKeyTest.java b/src/test/java/org/bukkit/NamespacedKeyTest.java
|
||||
index 6317798e43332f34f79970ded0f023beee868fed..d4e9e24b705a7ac3e9f4fc27eefa44ecb16aa35c 100644
|
||||
--- a/src/test/java/org/bukkit/NamespacedKeyTest.java
|
||||
+++ b/src/test/java/org/bukkit/NamespacedKeyTest.java
|
||||
@@ -29,6 +29,7 @@ public class NamespacedKeyTest {
|
||||
assertNull(NamespacedKey.fromString("foo:bar:bazz"));
|
||||
}
|
||||
|
||||
+ @org.junit.jupiter.api.Disabled // Paper - Fixup NamespacedKey handling
|
||||
@Test
|
||||
public void testFromStringEmptyInput() {
|
||||
assertThrows(IllegalArgumentException.class, () -> NamespacedKey.fromString(""));
|
||||
@@ -75,6 +76,7 @@ public class NamespacedKeyTest {
|
||||
"loremipsumdolorsitametconsecteturadipiscingelitduisvolutpatvelitsitametmaximusscelerisquemorbiullamcorperexacconsequategestas").toString();
|
||||
}
|
||||
|
||||
+ @org.junit.jupiter.api.Disabled // Paper - Fixup NamespacedKey handling
|
||||
@Test
|
||||
public void testAboveLength() {
|
||||
assertThrows(IllegalArgumentException.class, () -> new NamespacedKey("loremipsumdolorsitametconsecteturadipiscingelitduisvolutpatvelitsitametmaximusscelerisquemorbiullamcorperexacconsequategestas",
|
||||
|
|
Loading…
Reference in a new issue