1.

In Java, assert is a keyword. Won't this conflict with JUnit's assert() method?

Answer»

JUnit 3.7 deprecated assert() and replaced it with assertTrue(), which works exactly the same way. JUnit 4 is compatible with the assert keyword. If you run with the -ea JVM switch, assertions that fail will be reported by JUnit.



Discussion

No Comment Found