JUnit4 – @Before vs @BeforeClass / @After vs @AfterClass
In JUnit4 @Before is used to execute set of preconditions before executing a test. For example, if there is a need to open some application and create a user before executing a test, then this annotation can be used for that method. Method that is marked with @Before will be executed before executing every test …