Why the @BeforeClass method in JUnit is static whereas in TestNG its non-static? TestNG was developed as an improvement over JUnit, so why did they choose this way of implementation?
Since @BeforeClass runs only once, so making it static makes more sense than making it non static. Also in TestNG, on which instance the @BeforeClass method is called? Can someone cite an example for better understanding?