package ru.matevosyan.lesson_5_Array;

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


public class ArrayBubbleTest {
		
	@Test
	public void whenSortNThanGetResult() {
		
		//assign
		ArrayBubble arr = new ArrayBubble();
		int[] masToBubbleSort = {1,5,3,4,2};
		int[] mas = {1,2,3,4,5};
		
		//act
		assertArrayEquals(arr.sort(masToBubbleSort), mas);

	}
}
@@ -128,16 +128,67 @@
 sert.*;%0A
+import static junit.framework.Assert.assertEquals;%0A
 %0A%0Apublic
@@ -348,15 +348,15 @@
  %7B1,
-5,3,4,2
+3,2,5,4
 %7D;%0A%09
@@ -365,16 +365,17 @@
 nt%5B%5D mas
+s
  = %7B1,2,
@@ -388,45 +388,36 @@
 ;%0A%09%09
-%0A%09%09//act%0A%09%09assertArrayEquals(
+int%5B%5D masexpected = 
 arr.sort
 (mas
@@ -412,16 +412,19 @@
 arr.sort
+Arr
 (masToBu
@@ -436,16 +436,57 @@
 ort)
-, 
+;%0A%09%09%0A%09%09//act%0A%09%09assertThat(masexpected, is(
 mas
+s
 )
+)
 ;
-%0A
 %0A%09%7D%0A

add ArrayBubbleTest.java