From edcd13b5326565dba06cb0d97476f2bbdbfade84 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sun, 21 Apr 2019 02:56:29 -0400 Subject: [PATCH] Fix Checkstyle issues --- .../messages/MinecraftChannelIdentifierTest.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/api/src/test/java/com/velocitypowered/api/proxy/messages/MinecraftChannelIdentifierTest.java b/api/src/test/java/com/velocitypowered/api/proxy/messages/MinecraftChannelIdentifierTest.java index eba99b6f8..00699ba5e 100644 --- a/api/src/test/java/com/velocitypowered/api/proxy/messages/MinecraftChannelIdentifierTest.java +++ b/api/src/test/java/com/velocitypowered/api/proxy/messages/MinecraftChannelIdentifierTest.java @@ -1,6 +1,8 @@ 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; @@ -8,20 +10,20 @@ class MinecraftChannelIdentifierTest { @Test void createAllowsValidNamespaces() { - MinecraftChannelIdentifier.create("minecraft", "brand"); + create("minecraft", "brand"); } @Test void createAllowsEmptyName() { - MinecraftChannelIdentifier.create("minecraft", ""); + create("minecraft", ""); } @Test void createDisallowsNull() { assertAll( - () -> assertThrows(IllegalArgumentException.class, () -> MinecraftChannelIdentifier.create(null, "")), - () -> assertThrows(IllegalArgumentException.class, () -> MinecraftChannelIdentifier.create("", "")), - () -> assertThrows(IllegalArgumentException.class, () -> MinecraftChannelIdentifier.create("minecraft", null)) + () -> assertThrows(IllegalArgumentException.class, () -> create(null, "")), + () -> assertThrows(IllegalArgumentException.class, () -> create("", "")), + () -> assertThrows(IllegalArgumentException.class, () -> create("minecraft", null)) ); } } \ No newline at end of file