Very nice idea, Knut. However, I suggest not calling the tag assertFails, since (in general) no test failure is involved. How about <assertThrown> since we are asserting that an exception is being thrown. I particularly like the idea of having the expected Throwable (not just Exception) declared as an attribute.
More concretely: <test:assertThrown expectedThrowable="MyException"> <!-- do something --> </test:assertThrown> This would catch the expectedThrowable. Any other throwable would cause a test failure (noting the thrown type). If no exception is thrown when in the body, the test fails too (noting that the expected exception didn't arrive). This way you avoid having to add a nested <test:fail> tag all the time. Cheers, .T. -- I do not think there is any thrill that can go through the human heart like that felt by the inventor as he sees some creation of the brain unfolding to success... Such emotions make a man forget food, sleep, friends, love, everything. -- Nikola Tesla, electrical engineer and inventor (1856-1943) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
