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 "ConvertOldTestToJunitTips" by RaminMoazeni
Date Thu, 02 Aug 2007 22:44:27 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 RaminMoazeni:
http://wiki.apache.org/db-derby/ConvertOldTestToJunitTips

------------------------------------------------------------------------------
     * {{{ant clobber ; ant all}}} (check no build failures)
     * run {{{derbyall}}} - check for no (new) failures
     * {{{svn diff}}} to create a patch & attach to the jira issue along with the output
of {{{svn stat}}}
+ 
+ === How do I get the expected SQLStates? ===
+ 
+    * use the canon file located at functionTests/master/someTest.out to capture expected
SQLStates.
+ 
+ or
+  
+    * put System.out.println("Expected message: "+ e.getSQLState() +":" + e.getMessage());
statements in the new test, to get the SQLStates
  
  === Common mistakes ===
     * Not using the utility methods that have already been created.  

Mime
View raw message