Google News
logo
JUnit - Interview Questions
What is a JUnit fixture?
Fixture represents a fixed state of object sets used as a baseline for running test methods. This is to ensure there is a fixed and well-known environment where the results of the test methods are repeatable when run multiple times. The fixture has the following 2 methods :
 
* setUp() This runs before every test case is run.
* tearDown() This method is run after every test is run.

Advertisement