@@ -0,0 +1,1274 @@
+package by.vorokhobko;%0A%0Aimport org.junit.Test;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**%0A * Test.%0A *%0A * @author Evgeny Vorokhobko (vorokhobko2011@yandex.ru).%0A * @version 1.%0A * @since 21.12.2016.%0A */%0A%0Apublic class BubbleSortTest %7B%0A     /**%0A     * @Test.%0A     */%0A    @Test%0A%09public void sortArrayWithAnEvenNumberOfElements() %7B%0A%09%09final BubbleSort bs = new BubbleSort();%0A%09%09final int%5B%5D values = new int%5B%5D%7B5, 10, 2, 1%7D;%0A%09%09final int%5B%5D resultArray = bs.sorting(values);%0A%09%09final int%5B%5D expectArray = new int%5B%5D%7B1, 2, 5, 10%7D;%0A%09%09assertThat(resultArray, is(expectArray));%0A%09%7D%0A%09 /**%0A     * @Test.%0A     */%0A    @Test%0A%09public void sortArrayWithOddNumberOfElements() %7B%0A%09%09final BubbleSort bs = new BubbleSort();%0A%09%09final int%5B%5D values = new int%5B%5D%7B5, 10, 2, 1, -3%7D;%0A%09%09final int%5B%5D resultArray = bs.sorting(values);%0A%09%09final int%5B%5D expectArray = new int%5B%5D%7B-3, 1, 2, 5, 10%7D;%0A%09%09assertThat(resultArray, is(expectArray));%0A%09%7D%0A%09 /**%0A     * @Test.%0A     */%0A    @Test%0A%09public void sortArrayWithNegativeNumbers() %7B%0A%09%09final BubbleSort bs = new BubbleSort();%0A%09%09final int%5B%5D values = new int%5B%5D%7B-5, -10, -2, -1, -3%7D;%0A%09%09final int%5B%5D resultArray = bs.sorting(values);%0A%09%09final int%5B%5D expectArray = new int%5B%5D%7B-10, -5, -3, -2, -1%7D;%0A%09%09assertThat(resultArray, is(expectArray));%0A%09%7D%0A%7D

add class BubbleSortTest