db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r654859 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/RelativeTest.java
Date Fri, 09 May 2008 15:36:07 GMT
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,



Mime
View raw message