Closed GoogleCodeExporter closed 8 years ago
Committed (I did some changed to the test but it's functionally equivalent)
Original comment by stefano.mazzocchi@gmail.com
on 12 May 2010 at 9:03
Great. Thanks Stefano - it wasn't quite production ready, so thanks for
cleaning it
up and committing.
As an aside, normally I'd have guard clauses on the functions to throw
IllegalArgumentException if a null value is passed as a parameter (which I was
testing for). I notice you changed the test to expect ServletException.
I'd prefer to see IllegalArgumentException (or whatever the Java Equivalent of
.Net's
ArgumentNullException is), as it's then obvious that the problem isn't with the
method but with the parameter passed in to it - which saves time in the
debugging.
Original comment by iainsproat
on 12 May 2010 at 10:28
Original comment by iainsproat
on 17 May 2010 at 12:03
Original comment by tfmorris
on 18 Sep 2012 at 2:21
Original comment by tfmorris
on 18 Sep 2012 at 2:52
Original issue reported on code.google.com by
iainsproat
on 12 May 2010 at 8:01Attachments: