KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I believe that we are all know that setUp (@Before) will execute before any test method and tearDown(@After) will execute after test method. Also we know that Junit will create one instance of Test per test method . my question is that can we just move setUp method content to class Constructor and remove setUp method? is there any specific reason to keep setUp method?
Tags (comma-separated)
Save Edits
Cancel