Example #1
0
 @Test
 public void sorterReturns2IfInOrder() {
   assertEquals(1, sorter.sortCharacterArray(array1, array2));
 }
Example #2
0
 @Test
 public void sorterReturns1IfOutOfOrder() {
   assertEquals(-1, sorter.sortCharacterArray(array2, array1));
 }
Example #3
0
 @Test
 public void sorterReturns0IfEqual() {
   assertEquals(0, sorter.sortCharacterArray(array2, array3));
 }