package ru.shestakov.services;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

public class IteratorStrangeTest {

    @Test
    public void whenThen() {

        List<Integer> list1 = new ArrayList<Integer>();
        list1.add(1);
        list1.add(2);

        List<Integer> list2 = new ArrayList<Integer>();
        list2.add(3);
        list2.add(4);

        List<List<Integer>> listBig = new ArrayList<List<Integer>>();
        listBig.add(list1);
        listBig.add(list2);

        IteratorStrangeArrayList iteratorStrange= new IteratorStrangeArrayList();
        List<Integer> listSmall = iteratorStrange.convert(listBig);

    }

}
@@ -101,16 +101,67 @@
 .List;%0A%0A
+import static org.junit.Assert.assertArrayEquals;%0A%0A
 public c
@@ -222,12 +222,30 @@
 when
-Then
+ConvertedThenConverted
 () %7B
@@ -722,20 +722,249 @@
 (listBig);%0A%0A
+        List%3CInteger%3E expected = new ArrayList%3CInteger%3E();%0A        expected.add(1);%0A        expected.add(2);%0A        expected.add(3);%0A        expected.add(4);%0A%0A        assertArrayEquals(expected.toArray(), listSmall.toArray());%0A%0A
     %7D%0A%0A%7D

add structure with folder