Correct test

This commit is contained in:
Norman Maurer 2012-10-27 19:57:59 +02:00
parent 43dc0bd8a3
commit 5a8486e39c

View File

@ -27,7 +27,7 @@ public class NetworkConstantsTest {
@Test
public void testLocalhost() throws UnknownHostException {
assertNotNull(NetworkConstants.LOCALHOST);
assertSame(NetworkConstants.LOCALHOST, InetAddress.getLocalHost());
assertEquals(NetworkConstants.LOCALHOST, InetAddress.getLocalHost());
}
@Test