File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/test/java/org/apache/commons/pool2/impl Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2121import static org .hamcrest .Matchers .lessThanOrEqualTo ;
2222import static org .junit .jupiter .api .Assertions .assertEquals ;
2323import static org .junit .jupiter .api .Assertions .assertFalse ;
24+ import static org .junit .jupiter .api .Assertions .assertInstanceOf ;
2425import static org .junit .jupiter .api .Assertions .assertNotEquals ;
2526import static org .junit .jupiter .api .Assertions .assertNotNull ;
2627import static org .junit .jupiter .api .Assertions .assertNull ;
@@ -1160,7 +1161,7 @@ public void testBrokenFactoryShouldNotBlockPool() throws Exception {
11601161 }
11611162 // Failure expected
11621163 assertNotNull (ex );
1163- assertTrue ( ex instanceof NoSuchElementException );
1164+ assertInstanceOf ( NoSuchElementException . class , ex );
11641165 assertNull (obj );
11651166
11661167 // Configure factory to create valid objects so subsequent borrows work
You can’t perform that action at this time.
0 commit comments