Use Assert.assertThrows()
[genius.git] / ipv6util / api / src / test / java / org / opendaylight / genius / ipv6util / api / decoders / Ipv6NaDecoderTest.java
index 2b410347ef8891d41acaba10542688601a14bd5c..1c978ccc07702c15dd61e6ca58c5bb19fc4cdbee 100644 (file)
@@ -5,18 +5,17 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.genius.ipv6util.api.decoders;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotEquals;
+import static org.junit.Assert.assertThrows;
 
 import java.net.UnknownHostException;
 import java.util.ArrayList;
 import java.util.List;
 import org.junit.Test;
 import org.opendaylight.genius.ipv6util.api.Icmpv6Type;
-import org.opendaylight.infrautils.testutils.Asserts;
 import org.opendaylight.openflowplugin.libraries.liblldp.BufferException;
 import org.opendaylight.openflowplugin.libraries.liblldp.EtherTypes;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address;
@@ -113,7 +112,7 @@ public class Ipv6NaDecoderTest {
                 "00 20",                                           // Payload length
                 "3A"                                               // Next header is ICMPv6
         );
-        Asserts.assertThrows(BufferException.class, () -> {
+        assertThrows(BufferException.class, () -> {
             new Ipv6NaDecoder(invalidInputPayload).decode();
         });
     }