title: Re-run failed test using Junit
body: <p>I'm trying to improve an existing system of automated Selenium test.
  My goal is to repeat the tests that fails because of connections problem.
  I've found and tried to follow this thread <a href="https://stackoverflow.com/questions/8295100/how-to-re-run-failed-junit-tests-immediately">How to Re-run failed JUnit tests immediately?</a> that revealed itself quite useful.</p>
  
  <p>In my case the suite is composed by classes, so I've tried to substitute @Rule with @ClassRule, in order to repeat for each try also the @Before and @After parts.
  I'm sorry for my ignorance, but where am I supposed to place this rule? In my Suite class? Or in the Classes representing the test?</p>