Allow empty paths in namespaced keys (#12687)
This commit is contained in:
@@ -34,16 +34,6 @@ public class NamespacedKeyTest {
|
||||
assertThrows(IllegalArgumentException.class, () -> NamespacedKey.fromString(null));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEmptyNamespace() {
|
||||
assertThrows(IllegalArgumentException.class, () -> new NamespacedKey("", "foo").toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEmptyKey() {
|
||||
assertThrows(IllegalArgumentException.class, () -> new NamespacedKey("minecraft", "").toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidNamespace() {
|
||||
assertThrows(IllegalArgumentException.class, () -> new NamespacedKey("minecraft/test", "foo").toString());
|
||||
|
||||
Reference in New Issue
Block a user