Tuesday, April 12, 2011

JUnit and asserts (English)

To make a bridge from 3.8.x to 4.x you can read these articles:
* An early look at JUnit 4 http://www.ibm.com/developerworks/java/library/j-junit4.html

* Quick step-by-step guide : Upgrading Junit 3.x to Junit 4.x http://blog.bemoko.com/2009/03/20/quick-step-by-step-guide-upgrading-junit-3x-to-junit-4x/

Also JUnit's 4.x assert methods retrofired to throw java.lang.AssertionError See Sun's article Programming With Assertions http://download.oracle.com/javase/1.4.2/docs/guide/lang/assert.html for more.