public class StatementJdbc30Test extends BaseJDBCTestCase
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CLIENT_SUITE_NAME |
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Constructor and Description |
---|
StatementJdbc30Test(java.lang.String name)
Create a test with the given name.
|
Modifier and Type | Method and Description |
---|---|
private void |
assertFailedExecuteUpdateForColumnIndex(java.sql.SQLException ex)
Assert executeUpdateForColumnIndex failed.
|
private void |
assertFailedExecuteUpdateForColumnName(java.sql.SQLException ex)
Assert executeUpdateForColumnName failed.
|
private static junit.framework.Test |
baseSuite(java.lang.String name) |
static junit.framework.Test |
suite()
Create suite containing client and embedded tests and to run all tests in
this class
|
void |
testExecuteNoAutoGenColumnIndex()
After doing an insert into a table that doesn't have a generated column,
the test should fail.
|
void |
testExecuteNoAutoGenColumnName()
After doing an insert into a table that doesn't have a generated column,
the test should fail.
|
void |
testExecuteUpdateNoAutoGenColumnIndex()
Tests stmt.executeUpdate(String, int[]) After doing an insert into a
table that doesn't have a generated column, the test should fail.
|
void |
testExecuteUpdateNoAutoGenColumnName()
Tests stmt.executeUpdate(String, String[]) After doing an insert into a
table that doesn't have a generated column, the test should fail.
|
void |
testGetGenerateKeys()
Testing stmt.getGeneratedKeys()
|
void |
testGetMoreResults()
Tests stmt.getMoreResults(int)
|
void |
testGetResultSetHoldability()
Testing stmt.getResultSetHoldability()
|
void |
testInsertNoGenKeys()
Tests stmt.executeUpdate(String, int) with NO_GENERATED_KEYS.
|
void |
testReadingData()
Tests reading data from database
|
void |
testSelectNoGenKeys()
Tests stmt.execute(String, int) with NO_GENERATED_KEYS.
|
void |
xtestMaxOpenStatementsWithQueryTimeout()
DERBY-3198: Verify that we can have at least 16383 open Statements with
query timeout.
|
void |
xtestMultiExecWithQueryTimeout()
DERBY-3198: Verify that a statement can be executed
more than 32000 times, even when query timeout is enabled.
|
assertCallError, assertCheckTable, assertCommitError, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertResults, assertResults, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, chattyPrepare, chattyPrepareCall, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, dumpRs, dumpRs, emptyStatementCache, executeQuery, expectCompilationError, expectCompilationError, expectExecutionError, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, goodStatement, goodUpdate, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, tearDown, usingDB2Client, usingDerbyNetClient, usingEmbedded
alarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSameNullness, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, newAssertionFailedError, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemErr, setSystemOut, setSystemProperty, sleep, sleepAtLeastOneTick, traceit, vmAtLeast
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, setUp, toString
private static final java.lang.String CLIENT_SUITE_NAME
public StatementJdbc30Test(java.lang.String name)
name
- name of the test.public static junit.framework.Test suite()
private static junit.framework.Test baseSuite(java.lang.String name)
public void testReadingData() throws java.sql.SQLException
java.sql.SQLException
- if error occurspublic void testGetMoreResults() throws java.sql.SQLException
java.sql.SQLException
- if error occurspublic void testInsertNoGenKeys() throws java.sql.SQLException
java.sql.SQLException
- if error occurspublic void testExecuteUpdateNoAutoGenColumnIndex() throws java.sql.SQLException
java.sql.SQLException
public void testExecuteUpdateNoAutoGenColumnName() throws java.sql.SQLException
java.sql.SQLException
public void testSelectNoGenKeys() throws java.sql.SQLException
java.sql.SQLException
- if error occurspublic void testExecuteNoAutoGenColumnIndex() throws java.sql.SQLException
java.sql.SQLException
private void assertFailedExecuteUpdateForColumnIndex(java.sql.SQLException ex)
ex
- private void assertFailedExecuteUpdateForColumnName(java.sql.SQLException ex)
ex
- public void testExecuteNoAutoGenColumnName() throws java.sql.SQLException
java.sql.SQLException
public void xtestMultiExecWithQueryTimeout() throws java.sql.SQLException
java.sql.SQLException
public void xtestMaxOpenStatementsWithQueryTimeout() throws java.sql.SQLException
java.sql.SQLException
public void testGetResultSetHoldability() throws java.sql.SQLException
java.sql.SQLException
public void testGetGenerateKeys() throws java.sql.SQLException
java.sql.SQLException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.