InterviewSolution
Saved Bookmarks
| 1. |
What Is The Purpose Of @after Annotation In Junit? |
|
Answer» If you allocate EXTERNAL resources in a Before method you need to RELEASE them after the test runs. Annotating a PUBLIC void method with @After causes that method to be RUN after the Test method. If you allocate external resources in a Before method you need to release them after the test runs. Annotating a public void method with @After causes that method to be run after the Test method. |
|