\rModified JUnit tests to allow IP Address form of 'localhost' to support Windows...
[packetcable.git] / packetcable-driver / src / test / java / org / umu / cops / stack / COPSIpv6LastPdpAddrTest.java
index 494635e84b484bbb338544b2d29c498e5973e9a9..9058f9ea8ab596b945c51da0a5958c6c98ed6311 100644 (file)
@@ -52,7 +52,7 @@ public class COPSIpv6LastPdpAddrTest {
         Assert.assertEquals("C-num: LAST_PDP_ADDR", lines[1]);
         Assert.assertEquals("C-type: STATELESS", lines[2]);
         Assert.assertEquals("Ipv6LastPdpAddr", lines[3]);
-        Assert.assertEquals("Address: localhost", lines[4]);
+        Assert.assertTrue(lines[4].equals("Address: localhost") || lines[4].equals("Address: 0:0:0:0:0:0:0:1"));
         Assert.assertEquals("Port: 1234", lines[5]);
     }
 
@@ -112,7 +112,7 @@ public class COPSIpv6LastPdpAddrTest {
         Assert.assertEquals("C-num: LAST_PDP_ADDR", lines[1]);
         Assert.assertEquals("C-type: STATELESS", lines[2]);
         Assert.assertEquals("Ipv6LastPdpAddr", lines[3]);
-        Assert.assertEquals("Address: localhost", lines[4]);
+        Assert.assertTrue(lines[4].equals("Address: localhost") || lines[4].equals("Address: 0:0:0:0:0:0:0:1"));
         Assert.assertEquals("Port: 1234", lines[5]);
     }