\rModified JUnit tests to allow IP Address form of 'localhost' to support Windows...
[packetcable.git] / packetcable-driver / src / test / java / org / umu / cops / stack / COPSIpv4PdpRedirectAddressTest.java
index 30f6e1154cf32bf9ca45273ef181d27b59a34267..bb61c0705724d39c369aab1108a83671e52b1a97 100644 (file)
@@ -50,7 +50,7 @@ public class COPSIpv4PdpRedirectAddressTest {
         Assert.assertEquals("C-num: PDP_REDIR", lines[1]);
         Assert.assertEquals("C-type: DEF", lines[2]);
         Assert.assertEquals("Ipv4PdpRedirectAddress", lines[3]);
-        Assert.assertEquals("Address: localhost", lines[4]);
+        Assert.assertTrue(lines[4].equals("Address: localhost") || lines[4].equals("Address: 127.0.0.1"));
         Assert.assertEquals("Port: 1234", lines[5]);
     }
 
@@ -104,7 +104,7 @@ public class COPSIpv4PdpRedirectAddressTest {
         Assert.assertEquals("C-num: PDP_REDIR", lines[1]);
         Assert.assertEquals("C-type: DEF", lines[2]);
         Assert.assertEquals("Ipv4PdpRedirectAddress", lines[3]);
-        Assert.assertEquals("Address: localhost", lines[4]);
+        Assert.assertTrue(lines[4].equals("Address: localhost") || lines[4].equals("Address: 127.0.0.1"));
         Assert.assertEquals("Port: 1234", lines[5]);
     }