Skip to content

Commit a9027d7

Browse files
author
Alex Klymenko
committed
checkstyle: reduce "Too many static imports"
1 parent 5401dbd commit a9027d7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/java/com/thealgorithms/sorts/SortingAlgorithmTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
44
import static org.junit.jupiter.api.Assertions.assertEquals;
55
import static org.junit.jupiter.api.Assertions.assertIterableEquals;
6-
import static org.junit.jupiter.api.Assertions.assertThrows;
76
import static org.junit.jupiter.api.Assertions.assertTrue;
87

98
import java.util.ArrayList;
@@ -277,13 +276,13 @@ public void shouldAcceptWhenListWithMixedCaseStringsIsPassed() {
277276
@Test
278277
public void shouldHandleArrayWithNullValues() {
279278
Integer[] array = {3, null, 2, null, 1};
280-
assertThrows(NullPointerException.class, () -> getSortAlgorithm().sort(array));
279+
org.junit.jupiter.api.Assertions.assertThrows(NullPointerException.class, () -> getSortAlgorithm().sort(array));
281280
}
282281

283282
@Test
284283
public void shouldHandleListWithNullValues() {
285284
List<Integer> list = Arrays.asList(3, null, 2, null, 1);
286-
assertThrows(NullPointerException.class, () -> getSortAlgorithm().sort(list));
285+
org.junit.jupiter.api.Assertions.assertThrows(NullPointerException.class, () -> getSortAlgorithm().sort(list));
287286
}
288287

289288
static class CustomObject implements Comparable<CustomObject> {

0 commit comments

Comments
 (0)