* @test java.sql.SQLNonTransientConnectionException(String, String, int,
* Throwable)
*/
public void test_Constructor_LStringLStringILThrowable_22() {
Throwable cause = new Exception("MYTHROWABLE");
SQLNonTransientConnectionException sQLNonTransientConnectionException = new SQLNonTransientConnectionException(
null, null, -1, cause);
assertNotNull(sQLNonTransientConnectionException);
assertNull(
"The SQLState of SQLNonTransientConnectionException should be null",
sQLNonTransientConnectionException.getSQLState());
assertNull(
"The reason of SQLNonTransientConnectionException should be null",
sQLNonTransientConnectionException.getMessage());
assertEquals(
"The error code of SQLNonTransientConnectionException should be -1",
sQLNonTransientConnectionException.getErrorCode(), -1);
assertEquals(
"The cause of SQLNonTransientConnectionException set and get should be equivalent",
cause, sQLNonTransientConnectionException.getCause());
}