posted 18 years ago
For JUnit, you'd want to say assertTrue() rather than assert. Otherwise I agree with Mark. There's really no way to do this with assertEquals(). If you do this sort of thing more than once or maybe twice, I'd create a custom assert statement (or two) that can be reused in other tests:
It's a bit more work to put diagnostic info into the error messages, but it's often worth it, in my opinion.
[ October 17, 2006: Message edited by: Jim Yingst ]
"I'm not back." - Bill Harding, Twister