org.springframework.boot.test.util

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 Detail

      • ApplicationContextTestUtils

        public ApplicationContextTestUtils()
    • Method Detail

      • 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)