/*
 * 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 static org.junit.Assert.*;

import java.net.InetAddress;
import java.net.UnknownHostException;

import org.junit.Test;

public class NetworkConstantsTest {

    @Test
    public void testLocalhost() throws UnknownHostException {
        assertNotNull(NetworkConstants.LOCALHOST);
        assertEquals(NetworkConstants.LOCALHOST, InetAddress.getLocalHost());
    }

    @Test
    public void testLoopback() {
        assertNotNull(NetworkConstants.LOOPBACK_IF);
    }

}

@@ -663,15 +663,8 @@
 ort 
-static 
 org.
@@ -673,16 +673,12 @@
 nit.
-Assert.*
+Test
 ;%0A%0Ai
@@ -687,75 +687,14 @@
 ort 
-java.net.InetAddress;%0Aimport java.net.UnknownHostException;%0A%0Aimport
+static
  org
@@ -700,20 +700,24 @@
 g.junit.
-Test
+Assert.*
 ;%0A%0Apubli
@@ -793,36 +793,8 @@
 st()
- throws UnknownHostException
  %7B%0A 
@@ -847,86 +847,8 @@
 T);%0A
-        assertEquals(NetworkConstants.LOCALHOST, InetAddress.getLocalHost());%0A
     

Fix a failing test