Skip to content

Commit

Permalink
Use better JUnit API
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Mar 22, 2024
1 parent 6d178b3 commit 054ca94
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.apache.commons.dbcp2;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.fail;

Expand Down Expand Up @@ -174,8 +175,8 @@ public void testIsDisconnectionSqlExceptionStackOverflow() throws Exception {
parentException = childException;
}
final Connection conn = pool.borrowObject();
assertEquals(false, ((PoolableConnection) conn).isDisconnectionSqlException(rootException));
assertEquals(false, ((PoolableConnection) conn).isFatalException(rootException));
assertFalse(((PoolableConnection) conn).isDisconnectionSqlException(rootException));
assertFalse(((PoolableConnection) conn).isFatalException(rootException));
}

/**
Expand Down

0 comments on commit 054ca94

Please sign in to comment.