org.apache.derbyTesting.functionTests.tests.jdbcapi
Class ClosedObjectTest.CallableStatementObjectDecorator

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.extensions.TestDecorator
          extended by junit.extensions.TestSetup
              extended by org.apache.derbyTesting.functionTests.tests.jdbcapi.ClosedObjectTest.ObjectDecorator
                  extended by org.apache.derbyTesting.functionTests.tests.jdbcapi.ClosedObjectTest.StatementObjectDecorator
                      extended by org.apache.derbyTesting.functionTests.tests.jdbcapi.ClosedObjectTest.PreparedStatementObjectDecorator
                          extended by org.apache.derbyTesting.functionTests.tests.jdbcapi.ClosedObjectTest.CallableStatementObjectDecorator
All Implemented Interfaces:
junit.framework.Test
Enclosing class:
ClosedObjectTest

private static class ClosedObjectTest.CallableStatementObjectDecorator
extends ClosedObjectTest.PreparedStatementObjectDecorator

Decorator class for testing methods on a closed callable statement.


Field Summary
 
Fields inherited from class org.apache.derbyTesting.functionTests.tests.jdbcapi.ClosedObjectTest.ObjectDecorator
object_
 
Fields inherited from class junit.extensions.TestDecorator
fTest
 
Constructor Summary
ClosedObjectTest.CallableStatementObjectDecorator(junit.framework.Test test, ClosedObjectTest.DataSourceDecorator decorator)
          Creates a new CallableStatementObjectDecorator instance.
 
Method Summary
 void setUp()
          Sets up the test.
 
Methods inherited from class org.apache.derbyTesting.functionTests.tests.jdbcapi.ClosedObjectTest.PreparedStatementObjectDecorator
checkSQLState
 
Methods inherited from class org.apache.derbyTesting.functionTests.tests.jdbcapi.ClosedObjectTest.ObjectDecorator
checkException, createConnection, createStatement, expectsException, getClosedObject, prepareCall, prepareStatement, tearDown
 
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
 

Constructor Detail

ClosedObjectTest.CallableStatementObjectDecorator

public ClosedObjectTest.CallableStatementObjectDecorator(junit.framework.Test test,
                                                         ClosedObjectTest.DataSourceDecorator decorator)
Creates a new CallableStatementObjectDecorator instance.

Parameters:
test - the test to decorate
decorator - decorator which provides a callable statement
Method Detail

setUp

public void setUp()
           throws java.sql.SQLException
Sets up the test. Prepares a call and closes the statement.

Overrides:
setUp in class ClosedObjectTest.PreparedStatementObjectDecorator
Throws:
java.sql.SQLException - if an error occurs

Built on Sat 2009-11-28 18:44:18-0800, from revision 885187

Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.