Package org.apache.calcite.test
Class ExceptionMessageTest
- java.lang.Object
-
- org.apache.calcite.test.ExceptionMessageTest
-
public class ExceptionMessageTest extends java.lang.Object
Test cases to check that necessary information from underlying exceptions is correctly propagated viaSQLException
s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExceptionMessageTest.Entry
Entries made available in the reflective TestSchema.static class
ExceptionMessageTest.TestSchema
Simple reflective schema that provides valid and invalid entries.
-
Field Summary
Fields Modifier and Type Field Description private java.sql.Connection
conn
-
Constructor Summary
Constructors Constructor Description ExceptionMessageTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
runQuery(java.lang.String sql)
void
setUp()
void
testNonexistentTable()
void
testNonSqlException()
void
testSemanticError()
void
testSyntaxError()
void
testValidQuery()
-
-
-
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()
-
-