Migrate common/util to JUnit5
[yangtools.git] / common / util / src / test / java / org / opendaylight / yangtools / util / LazyCollectionsTest.java
index 66af2db04f105cadbb0d307ed4e70c45530027cc..f2b6ac506f6c0212e467fe0493885daf012ba4ef 100644 (file)
@@ -7,18 +7,16 @@
  */
 package org.opendaylight.yangtools.util;
 
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import java.util.ArrayList;
-import java.util.List;
-import org.junit.Test;
-
-public class LazyCollectionsTest {
+import org.junit.jupiter.api.Test;
 
+class LazyCollectionsTest {
     @Test
-    public void testLazyAddMethod() {
-        final List<Integer> list = new ArrayList<>();
-        List<Integer> anotherList = LazyCollections.lazyAdd(list, 5);
+    void testLazyAddMethod() {
+        final var list = new ArrayList<Integer>();
+        var anotherList = LazyCollections.lazyAdd(list, 5);
         assertEquals(1, anotherList.size());
 
         anotherList = LazyCollections.lazyAdd(anotherList, 4);