@@ -0,0 +1,920 @@
+package ru.job4j;%0A%0Aimport org.junit.Test;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**.%0A*%0A* @author AntonVasilyuk%0A* @version%0A* @since%0A*/%0A%0Apublic class RotateArrayTest %7B%0A%0A%09/**.%0A%09* method for test rotate array programm%0A%09*/%0A%09@Test%0A%09public void whenArrayTwoOnTwoThenRotateArray() %7B%0A%09%09RotateArray rotater = new RotateArray();%0A%09%09int%5B%5D%5B%5D firstArray = %7B%7B1, 2%7D, %7B3, 4%7D%7D;%0A%09%09int%5B%5D%5B%5D secondArray = rotater.rotate(firstArray);%0A%09%09int%5B%5D%5B%5D expectArray = %7B%7B3, 1%7D, %7B4, 2%7D%7D;%0A%09%09assertThat(secondArray, is(expectArray));%0A%0A%09%7D%0A%0A%09/**.%0A%09* method for test rotate array programm%0A%09*/%0A%09@Test%0A%09public void whenArrayThirdOnThirdThenRotateArray() %7B%0A%09%09RotateArray rotater = new RotateArray();%0A%09%09int%5B%5D%5B%5D firstArray = %7B%7B1, 2, 3%7D, %7B4, 5, 6%7D, %7B7, 8, 9%7D%7D;%0A%09%09int%5B%5D%5B%5D secondArray = rotater.rotate(firstArray);%0A%09%09int%5B%5D%5B%5D expectArray = %7B%7B7, 4, 1%7D, %7B8, 5, 2%7D, %7B9, 6, 3%7D%7D;%0A%09%09assertThat(secondArray, is(expectArray));%0A%0A%09%7D%0A%7D

add file for chapter_001_5.2