InterviewSolution
Saved Bookmarks
| 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. 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. |
|