|
|||||||||
| 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.jdbc4.CallableStatementTest
public class CallableStatementTest
Tests of the java.sql.CallableStatement JDBC40 API.
| Field Summary | |
|---|---|
private java.sql.CallableStatement |
cStmt
Default callable statement used by the tests. |
| Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE |
| Constructor Summary | |
|---|---|
CallableStatementTest(java.lang.String name)
Create a test with the given name. |
|
| Method Summary | |
|---|---|
private static junit.framework.Test |
baseSuite(java.lang.String name)
|
protected void |
setUp()
Create a default callable statement and connection. |
static junit.framework.Test |
suite()
Return suite with all tests of the class. |
protected void |
tearDown()
Close default callable statement and connection. |
void |
testGetCharacterStreamIntOnInParameterOfInvalidType()
Test which SQLState is thrown when getCharacterStream is called on an IN parameter of an unsupported type. |
void |
testGetCharacterStreamIntOnInParameterOfValidType()
Test which SQLState is thrown when getCharacterStream is called on an IN parameter of a supported type. |
void |
testGetCharacterStreamIntOnInvalidTypeDOUBLE()
|
void |
testGetCharacterStreamIntOnVARBINARYWithNull()
Read a SQL NULL value from a VARBINARY column through a reader. |
void |
testGetCharacterStreamIntOnVARCHARWithNull()
Read a SQL NULL value from a VARCHAR column through a reader. |
void |
testGetCharacterStreamIntVARBINARYDirect()
Test basic use of getCharacterStream on binary data. |
void |
testGetCharacterStreamIntVARBINARYFromDb()
Fetch a string stored as bytes from the database through a reader, then recreate the string. |
void |
testGetCharacterStreamIntVARCHAR()
Test basic use of getCharacterStream on character data. |
void |
testGetCharacterStreamStringNotImplemented()
|
void |
testGetDoubleIntOnInParameter()
|
void |
testGetNCharacterStreamIntNotImplemented()
|
void |
testGetNCharacterStreamStringNotImplemented()
|
void |
testGetNClobIntNotImplemented()
|
void |
testGetNClobStringNotImplemented()
|
void |
testGetNStringIntNotImplemented()
|
void |
testGetNStringStringNotImplemented()
|
void |
testGetSQLXMLIntNotImplemented()
|
void |
testGetSQLXMLStringNotImplemented()
|
void |
testIsNotWrapperForResultSet()
|
void |
testIsWrapperForCallableStatement()
|
void |
testIsWrapperForPreparedStatement()
|
void |
testIsWrapperForStatement()
|
private void |
testIsWrapperForXXXStatement(java.lang.Class klass)
Helper method for testIsWrapperFor*Statement test cases. |
void |
testNamedParametersAreNotSupported()
|
void |
testSetAsciiStream()
Tests the setAsciiStream method that accepts length as a long parameter in the Callable Statement interface |
void |
testSetBinaryStream()
Tests the setBinaryStream method that accepts length as a long parameter in the Callable Statement interface |
void |
testSetBlobNotImplemented()
|
void |
testSetCharacterStream()
Tests the setCharacterStream method that accepts length as a long parameter in the Callable Statement interface |
void |
testSetClobNotImplemented()
|
void |
testSetNCharacterStreamNotImplemented()
|
void |
testSetNClobNClobNotImplemented()
|
void |
testSetNClobReaderNotImplemented()
|
void |
testSetNStringNotImplemented()
|
void |
testSetSQLXMLNotImplemented()
|
void |
testUnwrapCallableStatement()
|
void |
testUnwrapPreparedStatement()
|
void |
testUnwrapResultSet()
|
void |
testUnwrapStatement()
|
| 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, 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 |
| Field Detail |
|---|
private java.sql.CallableStatement cStmt
| Constructor Detail |
|---|
public CallableStatementTest(java.lang.String name)
name - name of the test.| Method Detail |
|---|
protected void setUp()
throws java.sql.SQLException
setUp in class junit.framework.TestCasejava.sql.SQLException - if creation of connection or callable statement
fail.
protected void tearDown()
throws java.lang.Exception
tearDown in class BaseJDBCTestCasejava.sql.SQLException - if closing of the connection or the callable
statement fail.
java.lang.Exception
public void testNamedParametersAreNotSupported()
throws java.sql.SQLException
java.sql.SQLException
public void testGetDoubleIntOnInParameter()
throws java.sql.SQLException
java.sql.SQLException
public void testGetNClobIntNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
public void testGetNClobStringNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
public void testGetNStringIntNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
public void testGetNStringStringNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
public void testGetCharacterStreamIntOnInvalidTypeDOUBLE()
throws java.sql.SQLException
java.sql.SQLException
public void testGetCharacterStreamIntOnInParameterOfInvalidType()
throws java.sql.SQLException
java.sql.SQLException
public void testGetCharacterStreamIntOnInParameterOfValidType()
throws java.sql.SQLException
java.sql.SQLException
public void testGetCharacterStreamIntVARCHAR()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public void testGetCharacterStreamIntVARBINARYDirect()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public void testGetCharacterStreamIntVARBINARYFromDb()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public void testGetCharacterStreamIntOnVARBINARYWithNull()
throws java.sql.SQLException
java.sql.SQLException
public void testGetCharacterStreamIntOnVARCHARWithNull()
throws java.sql.SQLException
java.sql.SQLException
public void testGetCharacterStreamStringNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
public void testGetNCharacterStreamIntNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
public void testGetNCharacterStreamStringNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
public void testSetBlobNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
public void testSetClobNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
public void testSetNCharacterStreamNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
public void testSetNClobNClobNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
public void testSetNClobReaderNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
public void testSetNStringNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
public void testGetSQLXMLIntNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
public void testGetSQLXMLStringNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
public void testSetSQLXMLNotImplemented()
throws java.sql.SQLException
java.sql.SQLException
private void testIsWrapperForXXXStatement(java.lang.Class klass)
throws java.sql.SQLException
java.sql.SQLException
public void testIsWrapperForStatement()
throws java.sql.SQLException
java.sql.SQLException
public void testIsWrapperForPreparedStatement()
throws java.sql.SQLException
java.sql.SQLException
public void testIsWrapperForCallableStatement()
throws java.sql.SQLException
java.sql.SQLException
public void testIsNotWrapperForResultSet()
throws java.sql.SQLException
java.sql.SQLException
public void testUnwrapStatement()
throws java.sql.SQLException
java.sql.SQLException
public void testUnwrapPreparedStatement()
throws java.sql.SQLException
java.sql.SQLException
public void testUnwrapCallableStatement()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testUnwrapResultSet()
public void testSetCharacterStream()
throws java.sql.SQLException
java.sql.SQLException - Upon any error that occurs while calling this
method
public void testSetAsciiStream()
throws java.sql.SQLException
java.sql.SQLException - Upon any error that occurs while calling this
method
public void testSetBinaryStream()
throws java.sql.SQLException
java.sql.SQLException - Upon any error that occurs while calling this
methodpublic static junit.framework.Test suite()
private static junit.framework.Test baseSuite(java.lang.String name)
|
Built on Sat 2009-11-28 18:44:18-0800, from revision 885187 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||