| org.apache.derbyTesting.junit.BaseJDBCTestCase org.apache.derbyTesting.functionTests.tests.jdbc4.StatementEventsTest
Method Summary | |
public String | getName() Return the name of the test. | public void | setUp() Set up the connection to the database and register a statement event
listener. | public static Test | suite() Return suite with all tests of the class for all combinations of
pooled/xa connection and prepared/callable statement. | public void | tearDown() Free resources used in the test. | public void | testCloseEvent() Test that a close event is raised when a statement is closed. | public void | testCloseEventOnClosedConnection() Test whether a close event is raised when a connection is
closed. | public void | testErrorEventOnClosedConnection() Test that an error event is raised when execute() fails
because the connection is closed. |
StatementEventsTest | public StatementEventsTest(String name)(Code) | | Create a test with the given name.
Parameters: name - name of the test. |
getName | public String getName()(Code) | | Return the name of the test.
name of the test |
setUp | public void setUp() throws SQLException(Code) | | Set up the connection to the database and register a statement event
listener.
exception: SQLException - if a database error occurs |
suite | public static Test suite()(Code) | | Return suite with all tests of the class for all combinations of
pooled/xa connection and prepared/callable statement.
a test suite |
testCloseEvent | public void testCloseEvent() throws SQLException(Code) | | Test that a close event is raised when a statement is closed.
exception: SQLException - if a database error occurs |
testCloseEventOnClosedConnection | public void testCloseEventOnClosedConnection() throws SQLException(Code) | | Test whether a close event is raised when a connection is
closed. (Client should raise a close event since the connection calls
close() on its statements. Embedded should not raise a
close event since the connection does not call close() on
its statements.)
exception: SQLException - if a database error occurs |
testErrorEventOnClosedConnection | public void testErrorEventOnClosedConnection() throws SQLException(Code) | | Test that an error event is raised when execute() fails
because the connection is closed.
exception: SQLException - if a database error occurs |
Methods inherited from org.apache.derbyTesting.junit.BaseJDBCTestCase | public void assertCompileError(String sqlState, String query)(Code)(Java Doc) public static void assertEquals(Blob b1, Blob b2) throws IOException, SQLException(Code)(Java Doc) public static void assertEquals(Clob c1, Clob c2) throws IOException, SQLException(Code)(Java Doc) public static void assertSQLState(String message, String expected, SQLException exception)(Code)(Java Doc) public static void assertSQLState(String expected, SQLException exception)(Code)(Java Doc) public void commit() throws SQLException(Code)(Java Doc) public Statement createStatement() throws SQLException(Code)(Java Doc) public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException(Code)(Java Doc) public Connection getConnection() throws SQLException(Code)(Java Doc) public Connection getConnection(String databaseName, String connAttrs) throws SQLException(Code)(Java Doc) public Connection getDefaultConnection(String connAttrs) throws SQLException(Code)(Java Doc) protected void initializeConnection(Connection conn) throws SQLException(Code)(Java Doc) public Connection openConnection(String databaseName) throws SQLException(Code)(Java Doc) public Connection openDefaultConnection() throws SQLException(Code)(Java Doc) public CallableStatement prepareCall(String sql) throws SQLException(Code)(Java Doc) public PreparedStatement prepareStatement(String sql) throws SQLException(Code)(Java Doc) public void rollback() throws SQLException(Code)(Java Doc) public int runSQLCommands(String sqlCommands) throws UnsupportedEncodingException, SQLException(Code)(Java Doc) public int runScript(InputStream script, String encoding) throws UnsupportedEncodingException, SQLException(Code)(Java Doc) protected void tearDown() throws java.lang.Exception(Code)(Java Doc) public static boolean usingDerbyNet()(Code)(Java Doc) public static boolean usingDerbyNetClient()(Code)(Java Doc) public static boolean usingEmbedded()(Code)(Java Doc)
|
|
|