Junit @Rule and @ClassRule

The distinction becomes clear when you have more than one test method in a class. A @ClassRule has its before() method run before any of the test methods. Then all the test methods are run, and finally the rule’s after() method. So if you have five test methods in a class, before() and after() will … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)