I see many tests written like this:
public void testParameterOrder() throws Exception{
try{
... real test code ...
}catch(Exception e){
e.printStackTrace();
assertTrue(false);
}
}
This is a bad idea, because it's verbose and it hides the exception from
JUnit. The code should be written simply as:
public void testParameterOrder() throws Exception {
... real test code ...
}
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com