private static class ClosedObjectTest.ResultSetObjectDecorator extends ClosedObjectTest.ObjectDecorator
Modifier and Type | Field and Description |
---|---|
private java.sql.Statement |
stmt_
Statement used for creating the result set to test.
|
object_
Constructor and Description |
---|
ResultSetObjectDecorator(junit.framework.Test test,
ClosedObjectTest.DataSourceDecorator decorator)
Creates a new
ResultSetObjectDecorator instance. |
Modifier and Type | Method and Description |
---|---|
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.
|
checkException, createConnection, createStatement, expectsException, getClosedObject, prepareCall, prepareStatement
basicRun, countTestCases, getTest, toString
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, failNotEquals, failNotSame, failSame, format
private java.sql.Statement stmt_
public ResultSetObjectDecorator(junit.framework.Test test, ClosedObjectTest.DataSourceDecorator decorator)
ResultSetObjectDecorator
instance.test
- the test to decoratedecorator
- decorator used for obtaining a statementpublic void setUp() throws java.sql.SQLException
setUp
in class junit.extensions.TestSetup
java.sql.SQLException
- if an error occurspublic void tearDown() throws java.lang.Exception
tearDown
in class ClosedObjectTest.ObjectDecorator
java.lang.Exception
- if an error occursprotected void checkSQLState(java.lang.reflect.Method method, java.sql.SQLException sqle) throws java.sql.SQLException
checkSQLState
in class ClosedObjectTest.ObjectDecorator
method
- a Method
valuesqle
- a SQLException
valuejava.sql.SQLException
- if an error occursApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.