@@ -0,0 +1,1286 @@
+package ru.sbulygin;%0A%0A%0Aimport org.junit.Test;%0A%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A%0A/**%0A * Class ConvertList.%0A *%0A * @author ru.sbulygin.%0A * @since 13.04.2017.%0A * @version 1.0.%0A */%0Apublic class ConvertListTest %7B%0A%0A    /**%0A     * Method tests converting a two-dimensional array to an ArrayList.%0A     * @throws Exception Exception when errors test.%0A     */%0A    @Test%0A    public void whenUsedTwoDimensionalArrayThatArrayList() throws Exception %7B%0A        final int%5B%5D%5B%5D testArray = %7B%7B1, 2, 3, 4, 5%7D, %7B6, 7, 8, 9, 10%7D%7D;%0A        final List%3CInteger%3E expectedCollection = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);%0A        assertThat(expectedCollection, is(new ConvertList().toList(testArray)));%0A%0A    %7D%0A%0A    /**%0A     * Method tests conversion of ArrayList to two dimensional array.%0A     * @throws Exception Exception when errors test.%0A     */%0A    @Test%0A    public void toArray() throws Exception %7B%0A        final List%3CInteger%3E testCollection = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);%0A        final int%5B%5D%5B%5D expectedArray = %7B%7B1, 2, 3%7D, %7B4, 5, 6%7D, %7B7, 8, 9%7D, %7B10, 0, 0%7D%7D;%0A        final int rows = 4;%0A        assertThat(expectedArray, is(new ConvertList().toArray(testCollection, rows)));%0A    %7D%0A%0A%7D

add class ConvertListTest #2