* @test java.sql.SQLNonTransientConnectionException(String, String, int,
* Throwable)
*/
public void test_Constructor_LStringLStringILThrowable_4() {
Throwable cause = new Exception("MYTHROWABLE");
SQLNonTransientConnectionException sQLNonTransientConnectionException = new SQLNonTransientConnectionException(
"MYTESTSTRING1", "MYTESTSTRING2", -1, cause);
assertNotNull(sQLNonTransientConnectionException);
assertEquals(
"The SQLState of SQLNonTransientConnectionException set and get should be equivalent",
"MYTESTSTRING2", sQLNonTransientConnectionException
.getSQLState());
assertEquals(
"The reason of SQLNonTransientConnectionException set and get should be equivalent",
"MYTESTSTRING1", 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());
}