Pragmatically, have you ever had addDocument fail? If not, then what peace of mind are you getting from such a test?

The test I've shown is not supposed to test if addDocument() fails or not, but to test if addDocument() is invoked at all. The tested method was Foo.foo(), which could be doing more things that could possibly fail before addDocument() is invoked at all.


--
Maik Schreiber   *   http://www.blizzy.de

GPG public key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x1F11D713
Key fingerprint: CF19 AFCE 6E3D 5443 9599 18B5 5640 1F11 D713

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to