logo       

Re: FAQ entry critique (Re: Re: distinguishing between failures and errors): msg#00148

java.junit.user

Subject: Re: FAQ entry critique (Re: Re: distinguishing between failures and errors)

J. B. Rainsberger wrote:

>
>Suggestion: change the failure message to "Read from a nonexistent file?!". I
>prefer this pattern because it indicates what the system did incorrectly in a
>higher-level way. I also think it's funnier when I see it in the test
>results. ;)
>

pholser wrote:

>
>i like the new examples, except that i'd add some language to indicate
>that the file "exists.txt" was hopefully created by the test class's
>setUp(), so that the test can run without having to depend on someone
>else having put the file in place.
>


Done.

http://junit.sourceforge.net/doc/faq/faq.htm#tests_9

Thanks for the help!

Mike






<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise