\rModified JUnit tests to allow IP Address form of 'localhost' to support Windows...
[packetcable.git] / packetcable-driver / src / test / java / org / umu / cops / stack / COPSIpv4InInterfaceTest.java
index 19c86f5524881000d27429cbe1c7930f9388b8af..b2d7053dd95cec3c832e4a487888d44d824c65d2 100644 (file)
@@ -58,7 +58,7 @@ public class COPSIpv4InInterfaceTest {
         Assert.assertEquals("**In-Interface**", lines[0]);
         Assert.assertEquals("C-num: ININTF", lines[1]);
         Assert.assertEquals("C-type: DEF", lines[2]);
-        Assert.assertEquals("Address: localhost", lines[3]);
+        Assert.assertTrue(lines[3].equals("Address: localhost") || lines[3].equals("Address: 127.0.0.1"));
         Assert.assertEquals("ifindex: 5", lines[4]);
     }