Bump MRI upstreams
[lispflowmapping.git] / mappingservice / lisp-proto / src / test / java / org / opendaylight / lispflowmapping / serializer / address / DistinguishedNameSerializerTest.java
index f2cedfdc8f8cffcfc9c25375e950fb3ae94c0ff1..e09b4e47f8e438af3cfd8b50c5ed589b4830a669 100644 (file)
@@ -10,9 +10,7 @@ package org.opendaylight.lispflowmapping.serializer.address;
 import static org.junit.Assert.assertEquals;
 
 import java.nio.ByteBuffer;
-
 import junitx.framework.ArrayAssert;
-
 import org.junit.Test;
 import org.opendaylight.lispflowmapping.lisp.serializer.address.LispAddressSerializer;
 import org.opendaylight.lispflowmapping.lisp.serializer.exception.LispSerializationException;
@@ -53,27 +51,27 @@ public class DistinguishedNameSerializerTest extends BaseTestCase {
 
     @Test
     public void deserialize__inList() throws Exception {
-        Eid address = LispAddressSerializer.getInstance().deserializeEid(hexToByteBuffer("40 03 00 00 " + //
-                "01 00 00 8 " + //
-                "00 11 64 61 76 69 64 00"), null);
+        Eid address = LispAddressSerializer.getInstance().deserializeEid(hexToByteBuffer("40 03 00 00 "
+                + "01 00 00 8 "
+                "00 11 64 61 76 69 64 00"), null);
 
         assertEquals(AfiListLcaf.class, address.getAddressType());
-        assertEquals("david", ((AfiList) address.getAddress()).getAfiList().getAddressList().get(0)
+        assertEquals("david", ((AfiList) address.getAddress()).getAfiList().getAddressList().iterator().next()
                 .getDistinguishedNameType().getValue());
 
     }
 
     @Test(expected = LispSerializationException.class)
     public void deserialize__ShorterBuffer() throws Exception {
-        LispAddressSerializer.getInstance().deserializeEid(hexToByteBuffer("40 03 00 00 " + //
-                "01 00 00 10 " + //
-                "00 11 64 61 76 69 64 00"), null);
+        LispAddressSerializer.getInstance().deserializeEid(hexToByteBuffer("40 03 00 00 "
+                + "01 00 00 10 "
+                "00 11 64 61 76 69 64 00"), null);
     }
 
     @Test(expected = LispSerializationException.class)
     public void deserialize__ShorterBuffer2() throws Exception {
-        LispAddressSerializer.getInstance().deserializeEid(hexToByteBuffer("40 03 00 00 " + //
-                "01 00 00 18 "), null);
+        LispAddressSerializer.getInstance().deserializeEid(hexToByteBuffer("40 03 00 00 "
+                "01 00 00 18 "), null);
     }
 
     @Test