You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by km...@apache.org on 2008/05/09 17:36:07 UTC
svn commit: r654859 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/RelativeTest.java
Author: kmarsden
Date: Fri May 9 08:36:07 2008
New Revision: 654859
URL: http://svn.apache.org/viewvc?rev=654859&view=rev
Log:
DERBY-3587 Convert jdbcapi/testRelative.java to JUnit
add fail() calls after expected failures.
Contributed by Suran Jayathilaka (suranjay at gmail dot com)
Modified:
db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/RelativeTest.java
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/RelativeTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/RelativeTest.java?rev=654859&r1=654858&r2=654859&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/RelativeTest.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/RelativeTest.java Fri May 9 08:36:07 2008
@@ -71,6 +71,8 @@
* Therefore, attempting to get value will throw an exception.
*/
rs.getString("name");
+ fail("FAIL - Attempting to read from an invalid row should have " +
+ "thrown an exception");
} catch (SQLException sqle) {
/**
* sets the expected sql state for the expected exceptions,
@@ -114,6 +116,8 @@
* Therefore, attempting to get value now will throw an exception.
*/
rs.getString("name");
+ fail("FAIL - Attempting to read from an invalid row should have " +
+ "thrown an exception");
} catch (SQLException sqle) {
/**
* sets the expected sql state for the expected exceptions,