db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Hillegas (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-1097) Add tests for Statement.isClosed()
Date Wed, 22 Mar 2006 22:28:02 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1097?page=comments#action_12371474 ] 

Rick Hillegas commented on DERBY-1097:
--------------------------------------

Now when I add jdbc/StatementTest.junit to the end of jdbc40.runall, I get the following diffs
in the network and embedded runs:

*** Start: StatementTest jdk1.6.0-beta2 jdbc40:jdbc40 2006-03-22 13:30:46 ***
0 add
> .E.E.E.E.E
> There were 5 errors:
> 1) testIsClosedBasic(org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTest)java.lang.AbstractMethodError:
org.apache.derby.impl.jdbc.EmbedStatement.isClosed()Z
> 2) testIsClosedWithTwoStatementsOnSameConnection(org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTest)java.lang.AbstractMethodError:
org.apache.derby.impl.jdbc.EmbedStatement.isClosed()Z
> 3) testIsClosedWhenClosingConnection(org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTest)java.lang.AbstractMethodError:
org.apache.derby.impl.jdbc.EmbedStatement.isClosed()Z
> 4) testIsClosedWhenClosingConnectionInInvalidState(org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTest)java.lang.AbstractMethodError:
org.apache.derby.impl.jdbc.EmbedStatement.isClosed()Z
> 5) testStatementExecuteAfterConnectionClose(org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTest)java.lang.AbstractMethodError:
org.apache.derby.impl.jdbc.EmbedStatement.isClosed()Z
> FAILURES!!!
> Tests run: 5,  Failures: 0,  Errors: 5
Test Failed.
*** End:   StatementTest jdk1.6.0-beta2 jdbc40:jdbc40 2006-03-22 13:31:12 ***

I see the following output in StatementTest.tmp:

.E.E.E.E.E
Time: 7.125
There were 5 errors:
1) testIsClosedBasic(org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTest)java.lang.AbstractMethodError:
org.apache.derby.impl.jdbc.EmbedStatement.isClosed()Z
	at org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTest.setUp(StatementTest.java:63)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
	at junit.extensions.TestSetup.run(TestSetup.java:23)
2) testIsClosedWithTwoStatementsOnSameConnection(org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTest)java.lang.AbstractMethodError:
org.apache.derby.impl.jdbc.EmbedStatement.isClosed()Z
	at org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTest.setUp(StatementTest.java:63)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
	at junit.extensions.TestSetup.run(TestSetup.java:23)
3) testIsClosedWhenClosingConnection(org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTest)java.lang.AbstractMethodError:
org.apache.derby.impl.jdbc.EmbedStatement.isClosed()Z
	at org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTest.setUp(StatementTest.java:63)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
	at junit.extensions.TestSetup.run(TestSetup.java:23)
4) testIsClosedWhenClosingConnectionInInvalidState(org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTest)java.lang.AbstractMethodError:
org.apache.derby.impl.jdbc.EmbedStatement.isClosed()Z
	at org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTest.setUp(StatementTest.java:63)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
	at junit.extensions.TestSetup.run(TestSetup.java:23)
5) testStatementExecuteAfterConnectionClose(org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTest)java.lang.AbstractMethodError:
org.apache.derby.impl.jdbc.EmbedStatement.isClosed()Z
	at org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTest.setUp(StatementTest.java:63)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
	at junit.extensions.TestSetup.run(TestSetup.java:23)

FAILURES!!!
Tests run: 5,  Failures: 0,  Errors: 5


I am at subversion rev 387925.

> Add tests for Statement.isClosed()
> ----------------------------------
>
>          Key: DERBY-1097
>          URL: http://issues.apache.org/jira/browse/DERBY-1097
>      Project: Derby
>         Type: Sub-task
>   Components: Test
>     Versions: 10.2.0.0
>  Environment: JDBC4 / JDK 1.6
>     Reporter: Kristian Waagan
>     Assignee: Kristian Waagan
>  Attachments: DERBY-1097-2a.diff, DERBY-1097-2a.stat, DERBY-1097-2b.diff, StatementTest.java,
StatementTest.java-v1, StatementTestSetup.java, StatementTestSetup.java-v1
>
> Add tests for Statement.isClosed() (implemented as part of DERBY-953).
> The tests are already written, but because of some "confusion" and diverging paths regarding
how to get connections when running JUnit tests, they are held back.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message