|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.extensions.TestDecorator
junit.extensions.TestSetup
org.apache.derbyTesting.functionTests.tests.jdbcapi.ClosedObjectTest.ObjectDecorator
org.apache.derbyTesting.functionTests.tests.jdbcapi.ClosedObjectTest.ResultSetObjectDecorator
private static class ClosedObjectTest.ResultSetObjectDecorator
Decorator class for testing methods on a closed result set.
| Field Summary | |
|---|---|
private java.sql.Statement |
stmt_
Statement used for creating the result set to test. |
| Fields inherited from class org.apache.derbyTesting.functionTests.tests.jdbcapi.ClosedObjectTest.ObjectDecorator |
|---|
object_ |
| Fields inherited from class junit.extensions.TestDecorator |
|---|
fTest |
| Constructor Summary | |
|---|---|
ClosedObjectTest.ResultSetObjectDecorator(junit.framework.Test test,
ClosedObjectTest.DataSourceDecorator decorator)
Creates a new ResultSetObjectDecorator instance. |
|
| Method Summary | |
|---|---|
protected void |
checkSQLState(java.lang.reflect.Method method,
java.sql.SQLException sqle)
Checks whether the exception has the expected SQL state (XCL16 - result set is closed). |
void |
setUp()
Sets up the test. |
void |
tearDown()
Tears down the test. |
| Methods inherited from class org.apache.derbyTesting.functionTests.tests.jdbcapi.ClosedObjectTest.ObjectDecorator |
|---|
checkException, createConnection, createStatement, expectsException, getClosedObject, prepareCall, prepareStatement |
| Methods inherited from class junit.extensions.TestSetup |
|---|
run |
| Methods inherited from class junit.extensions.TestDecorator |
|---|
basicRun, countTestCases, getTest, 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.Statement stmt_
| Constructor Detail |
|---|
public ClosedObjectTest.ResultSetObjectDecorator(junit.framework.Test test,
ClosedObjectTest.DataSourceDecorator decorator)
ResultSetObjectDecorator instance.
test - the test to decoratedecorator - decorator used for obtaining a statement| Method Detail |
|---|
public void setUp()
throws java.sql.SQLException
setUp in class junit.extensions.TestSetupjava.sql.SQLException - if an error occurs
public void tearDown()
throws java.lang.Exception
tearDown in class ClosedObjectTest.ObjectDecoratorjava.lang.Exception - if an error occurs
protected void checkSQLState(java.lang.reflect.Method method,
java.sql.SQLException sqle)
throws java.sql.SQLException
checkSQLState in class ClosedObjectTest.ObjectDecoratormethod - a Method valuesqle - a SQLException value
java.sql.SQLException - if an error occurs
|
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 | ||||||||