How to run set up method once in Junit?

Posted by Jessica Taylor | Updated on

Want to run set up method once in Junit? If you don’t want to force a declaration of a variable that is set and checked on each subtest, then adding this to a SuperTest could do:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers