Code example for NetworkInterface

Methods: equals

0
                    sameAsNetworkInterface1, networkInterface1);
            assertNotNull("Validate Null handled ok", networkInterface1);
        } 
		if (atLeastTwoInterfaces) {
			assertFalse("If objects are different false is returned",
					networkInterface1.equals(networkInterface2));
		} 
	} 
 
	/** 
	 * @tests java.net.NetworkInterface#hashCode() 
	 */ 
	public void test_hashCode() { 
 
		if (atLeastOneInterface) {
			assertTrue(
					"validate that hash codes are the same for two calls on the same object", 
					networkInterface1.hashCode() == networkInterface1
							.hashCode());
			assertTrue(
					"validate that hash codes are the same for two objects for which equals is true",