title: JUnit 5 test suite choose test methods
body: <p>Having some test classes with <code>Junit 5</code> and Spring Boot REST controller testing.</p>
  
  <pre><code>@SpringBootTest
  @AutoConfigureMockMvc
  public class TestClassA {
     @Autowired
     private MockMvc mockMvc;
  
     @Test
     @WithMockUser
     public void testMethod1() {
     ...
     }
  
     @Test
     @WithMockUser
     public void testMethod2() {
     ...
     }
  
     // more test methods
  }
  
  @SpringBootTest
  @AutoConfigureMockMvc
  public class TestClassB {
     @Autowired
     private MockMvc mockMvc;
  
     @Test
     @WithMockUser
     public void testMethod1() {
     ...
     }
  
     // more test methods
  
     @Test
     @WithMockUser
     public void testMethodX() {
        // requires that TestClassA.testMethod2()
        // must be run first
     }
  }
  </code></pre>
  
  <p>The test classes run, each testing a specific REST controller, but how to achieve a new test method <code>TestClassB.testMethodX()</code>? </p>
  
  <p>I thought to create a test suite in JUnit 5 and specify which test methods to run, also in order:</p>
  
  <pre><code>1. run TestClassA.testMethod2()
  
  2. run TestClassB.testMethodX()
  </code></pre>
  
  <p>I know about two annotations:
  - <code>@SelectPackages</code>
  - <code>@SelectClasses</code></p>
  
  <p>But selecting specific test methods not possible?
  Is this achievable with <code>JUnit 5</code>?</p>