* @test java.sql.SQLInvalidAuthorizationSpecException(String, String, int,
* Throwable)
*/
public void test_Constructor_LStringLStringILThrowable_2() {
Throwable cause = new Exception("MYTHROWABLE");
SQLInvalidAuthorizationSpecException sQLInvalidAuthorizationSpecException = new SQLInvalidAuthorizationSpecException(
"MYTESTSTRING1", "MYTESTSTRING2", 0, cause);
assertNotNull(sQLInvalidAuthorizationSpecException);
assertEquals(
"The SQLState of SQLInvalidAuthorizationSpecException set and get should be equivalent",
"MYTESTSTRING2", sQLInvalidAuthorizationSpecException
.getSQLState());
assertEquals(
"The reason of SQLInvalidAuthorizationSpecException set and get should be equivalent",
"MYTESTSTRING1", sQLInvalidAuthorizationSpecException
.getMessage());
assertEquals(
"The error code of SQLInvalidAuthorizationSpecException should be 0",
sQLInvalidAuthorizationSpecException.getErrorCode(), 0);
assertEquals(
"The cause of SQLInvalidAuthorizationSpecException set and get should be equivalent",
cause, sQLInvalidAuthorizationSpecException.getCause());
}