InterviewSolution
Saved Bookmarks
| 1. |
What Happens If A Junit Test Method Is Declared As "private"? |
|
Answer» If a JUNIT test method is declared as "private", it COMPILES SUCCESSFULLY. But the execution will fail. This is because JUnit REQUIRES that all test methods must be declared as "public". If a JUnit test method is declared as "private", it compiles successfully. But the execution will fail. This is because JUnit requires that all test methods must be declared as "public". |
|