junit TestWatcher failed and finished methods firing time
问题 I am writing some functional tests with webdriver and executing them with JUnit. I am trying to make use of TestWatcher class so everytime an event occurs a specific action could be done. I am overriding the finished and failed methods, but it seems to be that these are fired virtually simultaneously, so the driver has been already disposed by finish method before the failed method could do it's stuff. The TestWatcher is following: public class TestRules extends TestWatcher { private static