[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lucene-dev
Subject:    Re: Interfaces
From:       Maik Schreiber <blizzy-keyword-lucene_dev.6564c8 () blizzy ! de>
Date:       2005-03-17 14:15:32
Message-ID: 42399104.9030502 () blizzy ! de
[Download RAW message or body]

> 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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic