@@ -0,0 +1,1307 @@
+package com.github.pedrovgs.problem74;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertArrayEquals;%0A%0A/**%0A * @author Pedro Vicente G%C3%B3mez S%C3%A1nchez.%0A */%0Apublic class BubbleSortTest %7B%0A%0A  private BubbleSort bubbleSort;%0A%0A  @Before public void setUp() %7B%0A    bubbleSort = new BubbleSort();%0A  %7D%0A%0A  @Test(expected = IllegalArgumentException.class) public void shouldNotAcceptNullArrays() %7B%0A    bubbleSort.sort(null);%0A  %7D%0A%0A  @Test public void shouldNotModifyArrayIfIsAlreadySorted() %7B%0A    int%5B%5D input = %7B 1, 2, 3, 4 %7D;%0A%0A    bubbleSort.sort(input);%0A%0A    int%5B%5D expectedArray = %7B 1, 2, 3, 4 %7D;%0A    assertArrayEquals(expectedArray, input);%0A  %7D%0A%0A  @Test public void shouldSortArrayWhenTheInputDataIsInDescendingOrder() %7B%0A    int%5B%5D input = %7B 4, 3, 2, 1 %7D;%0A%0A    bubbleSort.sort(input);%0A%0A    int%5B%5D expectedArray = %7B 1, 2, 3, 4 %7D;%0A    assertArrayEquals(expectedArray, input);%0A  %7D%0A%0A  @Test public void shouldSortArrayPartiallySorted() %7B%0A    int%5B%5D input = %7B 1, 2, 4, 3 %7D;%0A%0A    bubbleSort.sort(input);%0A%0A    int%5B%5D expectedArray = %7B 1, 2, 3, 4 %7D;%0A    assertArrayEquals(expectedArray, input);%0A  %7D%0A%0A  @Test public void shouldSortArray() %7B%0A    int%5B%5D input = %7B 3, 4, 1, 2 %7D;%0A%0A    bubbleSort.sort(input);%0A%0A    int%5B%5D expectedArray = %7B 1, 2, 3, 4 %7D;%0A    assertArrayEquals(expectedArray, input);%0A  %7D%0A%7D%0A

Add some tests to problem 74