Class ExceptionMessageTest


  • public class ExceptionMessageTest
    extends java.lang.Object
    Test cases to check that necessary information from underlying exceptions is correctly propagated via SQLExceptions.
    • Field Detail

      • conn

        private java.sql.Connection conn
    • Constructor Detail

      • ExceptionMessageTest

        public ExceptionMessageTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • runQuery

        private void runQuery​(java.lang.String sql)
                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • testValidQuery

        public void testValidQuery()
                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • testNonSqlException

        public void testNonSqlException()
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • testSyntaxError

        public void testSyntaxError()
      • testSemanticError

        public void testSemanticError()
      • testNonexistentTable

        public void testNonexistentTable()