This content has been marked as final.
Show 1 reply
-
1. Re: assert instead of assertTrue
niox.nikospara.yahoo.com Jul 14, 2009 9:50 AM (in response to arcolf)SEAM suggests using TestNG instead of JUnit for testing. The SEAM testing framework is built on TestNG. In TestNG you use the assert keyword in the place of the assert*() methods of JUnit.
Usage is similar:
assertTrue(cond) => assert cond; assertTrue(message,cond) => assert cond : message; assertEquals(a,b) => assert a == b OR assert a.equals(b); ...etc