lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maik Schreiber <blizzy-keyword-lucene_dev.656...@blizzy.de>
Subject Re: Interfaces
Date Thu, 17 Mar 2005 14:15:32 GMT
> 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message