@@ -0,0 +1,1060 @@
+package ru.job4j.array;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**%0A* Test.%0A*%0A * @author Yury Vlasov%0A * @since 13.04.2017%0A * @version 1.0%0A*/%0Apublic class RotateArrayTest %7B%0A/**%0A* Test add.%0A*/%0A    @Test%0A    public void whenRotateTwoRowTwoColArrayThenRotatedArray() %7B%0A        //%D0%BD%D0%B0%D0%BF%D0%B8%D1%88%D0%B8%D1%82%D0%B5 %D0%B7%D0%B4%D0%B5%D1%81%D1%8C %D1%82%D0%B5%D1%81%D1%82, %D0%BF%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D1%8F%D1%8E%D1%89%D0%B8%D0%B9 %D0%BF%D0%BE%D0%B2%D0%BE%D1%80%D0%BE%D1%82 %D0%BC%D0%B0%D1%81%D1%81%D0%B8%D0%B2%D0%B0 %D1%80%D0%B0%D0%B7%D0%BC%D0%B5%D1%80%D0%BE%D0%BC 2 %D0%BD%D0%B0 2.%0A%09int%5B%5D%5B%5D values = %7B%7B1, 2%7D, %7B3, 4%7D%7D;%0A%09RotateArray rotateArray = new RotateArray();%0A%09int%5B%5D%5B%5D resultArray = rotateArray.rotate(values);%0A%09int%5B%5D%5B%5D expectArray = %7B%7B3, 1%7D, %7B4, 2%7D%7D;%0A%09assertThat(resultArray, is(expectArray));%0A%09%7D%0A/**%0A* Test add.%0A*/%0A    @Test%0A    public void whenRotateThreeRowThreeColArrayThenRotatedArray() %7B%0A        //%D0%BD%D0%B0%D0%BF%D0%B8%D1%88%D0%B8%D1%82%D0%B5 %D0%B7%D0%B4%D0%B5%D1%81%D1%8C %D1%82%D0%B5%D1%81%D1%82, %D0%BF%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D1%8F%D1%8E%D1%89%D0%B8%D0%B9 %D0%BF%D0%BE%D0%B2%D0%BE%D1%80%D0%BE%D1%82 %D0%BC%D0%B0%D1%81%D1%81%D0%B8%D0%B2%D0%B0 %D1%80%D0%B0%D0%B7%D0%BC%D0%B5%D1%80%D0%BE%D0%BC 3 %D0%BD%D0%B0 3.%0A%09int%5B%5D%5B%5D values = %7B%7B1, 2, 3%7D, %7B4, 5, 6%7D, %7B7, 8, 9%7D%7D;%0A%09RotateArray rotateArray = new RotateArray();%0A%09int%5B%5D%5B%5D resultArray = rotateArray.rotate(values);%0A%09int%5B%5D%5B%5D expectArray = %7B%7B7, 4, 1%7D, %7B8, 5, 2%7D, %7B9, 6, 3%7D%7D;%0A%09assertThat(resultArray, is(expectArray));%0A    %7D%0A%7D

task 223