title: How to repeat JUnit5 tests on class level?
body: <p>I'm using JUnit5 for the integration tests, where I have a use-case for repeating tests within the class, but I'd like to preserve the original order of tests. Is there a way with JUnit5 to achieve this?</p>
  
  <pre><code>@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
  public class TestExample {
      final int nrOfIterations = 3;
  
      @Order(1)
      @DisplayName("One")
      @RepeatedTest(value = nrOfIterations, name = RepeatedTest.LONG_DISPLAY_NAME)
      void repeatedTestWithRepetitionInfo(RepetitionInfo repetitionInfo) {
          System.out.println("One #" + (repetitionInfo.getCurrentRepetition()-1));
          assertEquals(3, repetitionInfo.getTotalRepetitions());
      }
  
      @Order(2)
      @DisplayName("Two")
      @RepeatedTest(value = nrOfIterations, name = RepeatedTest.LONG_DISPLAY_NAME)
      void repeatedTestWithRepetitionInfoCont(RepetitionInfo repetitionInfo) {
          System.out.println("two #" + (repetitionInfo.getCurrentRepetition()-1));
          assertEquals(3, repetitionInfo.getTotalRepetitions());
      }
  }
  </code></pre>
  
  <p>This outputs:</p>
  
  <pre><code>One #0
  One #1
  One #2
  two #0
  two #1
  two #2
  </code></pre>
  
  <p>And I want to get:</p>
  
  <pre><code>One #0
  two #0
  One #1
  two #1
  One #2
  two #2
  </code></pre>