Code example for NetworkInterface

Methods: getName

0
	 * @tests java.net.NetworkInterface#getName() 
	 */ 
	public void test_getName() { 
		if (atLeastOneInterface) {
			assertNotNull("validate that non null name is returned",
					networkInterface1.getName());
			assertFalse("validate that non-zero length name is generated",
					networkInterface1.getName().equals(""));
		} 
		if (atLeastTwoInterfaces) {
			assertFalse(
					"Validate strings are different for different interfaces", 
					networkInterface1.getName().equals(
							networkInterface2.getName()));
		} 
	} 
 
	/** 
	 * @tests java.net.NetworkInterface#getInetAddresses() 
	 */ 
Connect your IDE to all the code out there  Get Codota for Java