/** * It's nearly impossible to unit test the getLocalHostLANAddress method. * <p> * @throws UnknownHostException */ public void testGetLocalHostAddress_Simple() throws UnknownHostException { // DO WORK String result = HostNameUtil.getLocalHostAddress(); // VERIFY //System.out.print( result ); assertNotNull( "Should have a host address.", result ); } }
/** * It's nearly impossible to unit test the getLocalHostLANAddress method. * <p> * @throws UnknownHostException */ public void testGetLocalHostAddress_Simple() throws UnknownHostException { // DO WORK String result = HostNameUtil.getLocalHostAddress(); // VERIFY //System.out.print( result ); assertNotNull( "Should have a host address.", result ); } }