import static org.junit.Assert.*;

/**
 * Created by ANTON on 03.06.2017.
 */
public class IteratorEvenNumbersTest {

}
@@ -1,82 +1,255 @@
-import static org.junit.Assert.*;%0A%0A/**%0A * Created by ANTON on 03.06.2017.
+package ru.job4j;%0A%0Aimport org.junit.Test;%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * Task 4.1.2%0A * Test create Iterator even numbers%0A *%0A * @author Anton Vasilyuk on 03.06.2017.%0A * @version 1.0%0A * @since 0.1
 %0A */%0A
+%0A
 publ
@@ -284,9 +284,626 @@
 Test %7B%0A%0A
+    /**.%0A     * Testing Iterator for even numbers%0A     */%0A    @Test%0A    public void whenNeedAddOnlyEvenNumbers() %7B%0A        IteratorEvenNumbers iter = new IteratorEvenNumbers(new int%5B%5D %7B1, 2, 3, 4%7D);%0A        int%5B%5D arrayResult = new int%5B2%5D;%0A        int%5B%5D check = %7B2, 4%7D;%0A%0A        for (int i = 0; i %3C arrayResult.length; i++) %7B%0A            arrayResult%5Bi%5D = (Integer) iter.next();%0A        %7D%0A%0A        boolean expect = true;%0A        boolean fact = true;%0A        for (int i = 0; i %3C arrayResult.length; i++) %7B%0A            if (arrayResult%5Bi%5D != check%5Bi%5D) %7Bfact = false;%7D%0A        %7D%0A        assertThat(fact, is(expect));%0A    %7D%0A
 %7D

add file for chapter_003_4.1.2