|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.derbyTesting.junit.BaseTestCase
org.apache.derbyTesting.junit.BaseJDBCTestCase
org.apache.derbyTesting.functionTests.tests.jdbcapi.NullSQLTextTest
public class NullSQLTextTest
This test converts the old jdbcapi/nullSQLText.java test to JUnit.
| Field Summary |
|---|
| Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE |
| Constructor Summary | |
|---|---|
NullSQLTextTest(java.lang.String name)
Create a test with the given name. |
|
| Method Summary | |
|---|---|
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 |
private static void |
testCommentStmt(java.sql.Statement st,
java.lang.String sql,
boolean expectFailure)
Helper method for testDerby522(). |
void |
testDerby522()
Testing embedded comments in execute statement. |
void |
testNullStringExecuteQueryStatement()
Testing null string in executeQuery statement. |
void |
testNullStringExecuteStatement()
Testing null string in execute statement. |
void |
testNullStringExecuteUpdateStatement()
Testing null string in executeUpdate statement. |
void |
testNullStringPreparedStatement()
Testing null string in prepared statement. |
static void |
zeroArg()
Java method for procedure za() |
| Methods inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
alarm, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertSecurityManager, assertThrowableEquals, execJavaCmd, fail, getFailureFolder, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeSystemProperty, runBare, setSystemProperty, traceit |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runTest, setName, setUp, toString |
| Methods inherited from class junit.framework.Assert |
|---|
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, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NullSQLTextTest(java.lang.String name)
name - name of the test.| Method Detail |
|---|
public static junit.framework.Test suite()
private static junit.framework.Test baseSuite(java.lang.String name)
public void testNullStringPreparedStatement()
throws java.sql.SQLException
java.sql.SQLException - if database access errors or other errors occur
public void testNullStringExecuteStatement()
throws java.sql.SQLException
java.sql.SQLException - if database access errors or other errors occur
public void testNullStringExecuteQueryStatement()
throws java.sql.SQLException
java.sql.SQLException - if database access errors or other errors occur
public void testNullStringExecuteUpdateStatement()
throws java.sql.SQLException
java.sql.SQLException - if database access errors or other errors occur
public void testDerby522()
throws java.sql.SQLException
java.sql.SQLException - if database access errors or other errors occur
private static void testCommentStmt(java.sql.Statement st,
java.lang.String sql,
boolean expectFailure)
throws java.sql.SQLException
sql - sql statement
java.sql.SQLException - if database access errors or other errors occurpublic static void zeroArg()
|
Built on Thu 2009-11-26 18:42:53-0800, from revision 884739 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||