Extracts a ServerHandler from the Server class to reduce complexity
This commit is contained in:
@ -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());
|
||||
|
Reference in New Issue
Block a user