netty5/common/src/test/java/io/netty/util/NetworkConstantsTest.java
Trustin Lee 5d45880b9e Fix a failing test
There's practically no way to test if the detected localhost is good if the user's environment is broken.
2012-11-10 08:50:21 +09:00

35 lines
962 B
Java

/*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package io.netty.util;
import org.junit.Test;
import static org.junit.Assert.*;
public class NetworkConstantsTest {
@Test
public void testLocalhost() {
assertNotNull(NetworkConstants.LOCALHOST);
}
@Test
public void testLoopback() {
assertNotNull(NetworkConstants.LOOPBACK_IF);
}
}