I am progressing on some base testing infrastructure for xdoclet test suits and I am coming across some inconsistent uses of exception types.

It would be good for the test cases to exercise expected failures instead of just expected successes. (ie: if a directory is passed for a destination file… the call will fail with this exception).

What are folks opinions about the use of IllegalArgumentException, IllegalStateException and plain ol XDoclet exceptions.

I some cases method params are invalid throw IllegalArgumentExceptions other cases some sort of Xdoclet exception is thrown, other cases params are used with no checks resulting in Null pointer exceptions.


------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to