Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
Fix Checkstyle issues
Dieser Commit ist enthalten in:
Ursprung
dea7c215d7
Commit
edcd13b532
@ -1,6 +1,8 @@
|
|||||||
package com.velocitypowered.api.proxy.messages;
|
package com.velocitypowered.api.proxy.messages;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static com.velocitypowered.api.proxy.messages.MinecraftChannelIdentifier.create;
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertAll;
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
@ -8,20 +10,20 @@ class MinecraftChannelIdentifierTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void createAllowsValidNamespaces() {
|
void createAllowsValidNamespaces() {
|
||||||
MinecraftChannelIdentifier.create("minecraft", "brand");
|
create("minecraft", "brand");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void createAllowsEmptyName() {
|
void createAllowsEmptyName() {
|
||||||
MinecraftChannelIdentifier.create("minecraft", "");
|
create("minecraft", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void createDisallowsNull() {
|
void createDisallowsNull() {
|
||||||
assertAll(
|
assertAll(
|
||||||
() -> assertThrows(IllegalArgumentException.class, () -> MinecraftChannelIdentifier.create(null, "")),
|
() -> assertThrows(IllegalArgumentException.class, () -> create(null, "")),
|
||||||
() -> assertThrows(IllegalArgumentException.class, () -> MinecraftChannelIdentifier.create("", "")),
|
() -> assertThrows(IllegalArgumentException.class, () -> create("", "")),
|
||||||
() -> assertThrows(IllegalArgumentException.class, () -> MinecraftChannelIdentifier.create("minecraft", null))
|
() -> assertThrows(IllegalArgumentException.class, () -> create("minecraft", null))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren