albamatiit wrote:
> I have a class with an assert keyword.
> Now, when an assert fails, the test is marked as "not
> passed". There is a manner to test that the assert fail (I
> mean in a "positive" way, like with the try catch for the exception).

Just test that a java.lang.AssertionError got thrown, just as you would test
any other Exception.

Cheers, Ilja


Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=294855.5468653.6549235.3001176/D=groups/S=:HM/A=2376776/rand=472673846


Yahoo! Groups Links

Reply via email to