package ru.spoddubnyak;

  import org.junit.Test;
  import static org.hamcrest.core.Is.is;
  import static org.junit.Assert.*;

public class ArrayRotationTest {
	
  ArrayRotation sourceArray = new ArrayRotation  (new int[][] { 
                                                     		        {1,1,1,1,1},
	                                                                {2,2,2,2,2},
               		                                                {3,3,3,3,3},
																	{4,4,4,4,4},
																	{5,5,5,5,5},
	                                                                });
  
  @Test
    public void whenTurnArrayRight() {															   
		int[][] checkedArray = { 
			                    {5,4,3,2,1},
							    {5,4,3,2,1},
								{5,4,3,2,1},
								{5,4,3,2,1},
								{5,4,3,2,1}					
							   };
		
       assertThat(sourceArray.turnArrayRight(), is(checkedArray));
    }  	
	
	 @Test
    public void whenTurnArrayLeft() {															   
		int[][] checkedArray = { 
			                    {1,2,3,4,5},
							    {1,2,3,4,5},
								{1,2,3,4,5},
								{1,2,3,4,5},
								{1,2,3,4,5},
							   };
       assertThat(sourceArray.turnArrayLeft(), is(checkedArray));
    }  	
}
@@ -462,24 +462,16 @@
 %09%09%09%09%09%09%09%09
-%09%09%09%09%09%09%09%09
 %7B4,4,4,4
@@ -475,24 +475,16 @@
 4,4,4%7D,%0A
-%09%09%09%09%09%09%09%09
 %09%09%09%09%09%09%09%09
@@ -696,24 +696,44 @@
 4,3,2,1%7D,%0A%09%09
+%09%09%09    %7B5,4,3,2,1%7D,%0A
 %09%09%09%09%09    %7B5,
@@ -751,32 +751,12 @@
 %09%09%09%09
-%09%09%09%7B5,4,3,2,1%7D,%0A%09%09%09%09%09%09%09%09
+    
 %7B5,4
@@ -769,19 +769,20 @@
 %7D,%0A%09%09%09%09%09
-%09%09%09
+    
 %7B5,4,3,2
@@ -1006,32 +1006,52 @@
  %7B1,2,3,4,5%7D,%0A%09%09
+%09%09%09    %7B1,2,3,4,5%7D,%0A
 %09%09%09%09%09    %7B1,2,3,
@@ -1065,32 +1065,12 @@
 %09%09%09%09
-%09%09%09%7B1,2,3,4,5%7D,%0A%09%09%09%09%09%09%09%09
+    
 %7B1,2
@@ -1083,19 +1083,20 @@
 %7D,%0A%09%09%09%09%09
-%09%09%09
+    
 %7B1,2,3,4
@@ -1188,9 +1188,10 @@
    %7D  %09%0A
-
 %7D
+%0A

Update ArrayRotationTest.java