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