When we are doing unit testing with jUnit
we write two methods setUp() and setUpBeforeClass() what is difference between these methods also between tearDown() and tearDownAfterClass
@BeforeClass
public static void setUpBeforeClass() throws Exception {
}
@AfterClass
public static void tearDownAfterClass() throws Exception {
}
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}