title: Spring Boot TestNG with Multiple AbstractTestNGSpringContextTests classes
body: <p>Spring Boot TestNG with Multiple AbstractTestNGSpringContextTests classes initializes Spring Boot Context per Test Classes.</p>
  
  <p>I have defined multiple TestNG Test Classes like this :-</p>
  
  <pre><code>@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
  @DirtiesContext
  public class TestNGClass1 extends AbstractTestNGSpringContextTests{
  
      @LocalServerPort
      public int port;
      .......
  }
  </code></pre>
  
  <hr>
  
  <pre><code>@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
  @DirtiesContext
  public class TestNGClass2 extends AbstractTestNGSpringContextTests{
  
      @LocalServerPort
      public int port;
      .......
  }
  </code></pre>
  
  <hr>
  
  <pre><code>@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
  @DirtiesContext
  public class TestNGClass3 extends AbstractTestNGSpringContextTests{
  
      @LocalServerPort
      public int port;
      .......
  }
  </code></pre>
  
  <p>Is there a way out to reuse Spring Context across all those classes ?</p>