db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r905224 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java
Date Mon, 01 Feb 2010 09:42:18 GMT
Author: kahatlen
Date: Mon Feb  1 09:42:18 2010
New Revision: 905224

URL: http://svn.apache.org/viewvc?rev=905224&view=rev
Log:
DERBY-3852: J2EEDataSourceTest may ignore some failures

Most of this issue was fixed as part of DERBY-3853. This commit
addresses the remaining problem by calling fail() when execution
reaches a point that it was not intended to reach.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java?rev=905224&r1=905223&r2=905224&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java
Mon Feb  1 09:42:18 2010
@@ -2393,6 +2393,7 @@
         JDBCDataSource.setBeanProperty(ds, "shutdownDatabase", "shutdown");
         try {
             ds.getConnection();
+            fail("shutdown should raise exception");
         } catch (SQLException sqle) {
             assertSQLState("XJ015", sqle);
         }



Mime
View raw message