Class ApplicationContextTestUtils

java.lang.Object
org.springframework.boot.test.util.ApplicationContextTestUtils

public abstract class ApplicationContextTestUtils extends Object
Application context related test utilities.
Since:
1.4.0
Author:
Stephane Nicoll
  • Constructor Details

    • ApplicationContextTestUtils

      public ApplicationContextTestUtils()
  • Method Details

    • closeAll

      public static void closeAll(ApplicationContext context)
      Closes this ApplicationContext and its parent hierarchy if any.
      Parameters:
      context - the context to close (can be null)