Extracts a ServerHandler from the Server class to reduce complexity

This commit is contained in:
2021-08-21 13:43:27 +02:00
parent cd396eee6b
commit 44d8d6ee6b
8 changed files with 212 additions and 144 deletions

View File

@ -11,7 +11,7 @@ public class ServerTest {
@Test
public void fromStringTest() throws ConfigurationException {
Server server = Server.fromString("asd;/home/;false;Bukkit;1.10.2;4G;");
Server server = ServerHandler.fromString("asd;/home/;false;Bukkit;1.10.2;4G;");
assertEquals("asd", server.getName());
assertEquals("/home/", server.getPath());
assertFalse(server.isEnabled());