import static org.junit.Assert.*;

/**
 * Created by ANTON on 05.06.2017.
 */
public class IteratorIteratorsTest {

}
@@ -1,82 +1,295 @@
-import static org.junit.Assert.*;%0A%0A/**%0A * Created by ANTON on 05.06.2017.
+package ru.job4j;%0A%0Aimport java.util.*;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * Task 4.1.4%0A * Test methods create iterator for iterators%0A *%0A * @author Anton Vasilyuk%0A * @version 1.0%0A * @since 0.1
 %0A */%0A
+%0A
 publ
@@ -322,9 +322,1235 @@
 Test %7B%0A%0A
+    /**.%0A     * Iterator for write convert iterator iterators%0A     */%0A    private Iterator%3CInteger%3E convertIterator;%0A%0A    /**.%0A     * Preparing for test method%0A     */%0A    @Before%0A    public void preparingForTesting() %7B%0A        List%3CInteger%3E listOne = new ArrayList(Arrays.asList(1, 2, 3));%0A        List%3CInteger%3E listTwo = new ArrayList(Arrays.asList(4, 5, 6));%0A        List%3CInteger%3E listThird = new ArrayList(Arrays.asList(7, 8));%0A        List%3CIterator%3CInteger%3E%3E it = new ArrayList(Arrays.asList%0A                ((listOne.iterator()), listTwo.iterator(), listThird.iterator()));%0A        IteratorIterators iterators = new IteratorIterators();%0A        this.convertIterator = iterators.convert(it.iterator());%0A    %7D%0A%0A    /**.%0A     * Test method hasNext%0A     */%0A    @Test%0A    public void whenNeedCheckNextElement() %7B%0A        boolean result = convertIterator.hasNext();%0A        assertThat(result, is(true));%0A    %7D%0A%0A    /**.%0A     * Test method next%0A     */%0A    @Test%0A    public void whenNeedCheckMoveIterator() %7B%0A        convertIterator.next();%0A        convertIterator.next();%0A        convertIterator.next();%0A        convertIterator.next();%0A        Integer result = convertIterator.next();%0A        assertThat(result, is(5));%0A    %7D%0A
 %7D

add file for chapter_003_4.1.4