db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "IntroToJUnit" by JohnHEmbretsen
Date Tue, 14 Nov 2006 14:35:59 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by JohnHEmbretsen:
http://wiki.apache.org/db-derby/IntroToJUnit

------------------------------------------------------------------------------
       executeValues("ACOS", TWO_RADIANS);
       fail("ACOS: Out of range test failed, input value is: "
  					+ TWO_RADIANS);
-     } catch (SQLException sqlE) {
+ } catch (SQLException sqlE) {
-        // "ERROR 22003: The resulting value is outside the range for the data type DOUBLE.";
+      // "ERROR 22003: The resulting value is outside the range for the data type DOUBLE.";
-     }
+      assertSQLState(SQLStateConstants.DATA_EXCEPTION_NUMERIC_VALUE_OUT_OF_RANGE, sqlE);
+ }
  }}}
  
  == JUnit tests and the Derby test harness ==

Mime
View raw message