diff options
Diffstat (limited to 'enigma-server/src/test/java/cuchaz')
| -rw-r--r-- | enigma-server/src/test/java/cuchaz/enigma/network/ServerAddressTest.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/enigma-server/src/test/java/cuchaz/enigma/network/ServerAddressTest.java b/enigma-server/src/test/java/cuchaz/enigma/network/ServerAddressTest.java index 3765f7a5..c2920e02 100644 --- a/enigma-server/src/test/java/cuchaz/enigma/network/ServerAddressTest.java +++ b/enigma-server/src/test/java/cuchaz/enigma/network/ServerAddressTest.java | |||
| @@ -1,12 +1,11 @@ | |||
| 1 | package cuchaz.enigma.network; | 1 | package cuchaz.enigma.network; |
| 2 | 2 | ||
| 3 | import org.junit.Test; | ||
| 4 | |||
| 5 | import static org.junit.Assert.assertEquals; | 3 | import static org.junit.Assert.assertEquals; |
| 6 | import static org.junit.Assert.assertNull; | 4 | import static org.junit.Assert.assertNull; |
| 7 | 5 | ||
| 8 | public class ServerAddressTest { | 6 | import org.junit.Test; |
| 9 | 7 | ||
| 8 | public class ServerAddressTest { | ||
| 10 | @Test | 9 | @Test |
| 11 | public void validAddresses() { | 10 | public void validAddresses() { |
| 12 | assertEquals(ServerAddress.of("127.0.0.1", 22), ServerAddress.from("127.0.0.1", 22)); | 11 | assertEquals(ServerAddress.of("127.0.0.1", 22), ServerAddress.from("127.0.0.1", 22)); |
| @@ -24,5 +23,4 @@ public class ServerAddressTest { | |||
| 24 | assertNull(ServerAddress.from("127.0.0.1:100000000", 22)); | 23 | assertNull(ServerAddress.from("127.0.0.1:100000000", 22)); |
| 25 | assertNull(ServerAddress.from("127.0.0.1:lmao", 22)); | 24 | assertNull(ServerAddress.from("127.0.0.1:lmao", 22)); |
| 26 | } | 25 | } |
| 27 | |||
| 28 | } | 26 | } |