接口 ApplicationContextAssertProvider<C extends org.springframework.context.ApplicationContext>

    • 字段概要

      • 从接口继承的字段 org.springframework.beans.factory.BeanFactory

        FACTORY_BEAN_PREFIX
      • 从接口继承的字段 org.springframework.core.io.ResourceLoader

        CLASSPATH_URL_PREFIX
      • 从接口继承的字段 org.springframework.core.io.support.ResourcePatternResolver

        CLASSPATH_ALL_URL_PREFIX
    • 方法概要

      所有方法 静态方法 实例方法 抽象方法 已过时的方法 
      修饰符和类型方法说明
      ApplicationContextAssert<C>assertThat()
      已过时。
      use standard AssertJ assertThat(context)... calls instead.
      voidclose() 
      static <T extends ApplicationContextAssertProvider<C>,​C extends org.springframework.context.ApplicationContext>
      T
      get​(Class<T> type, Class<? extends C> contextType, Supplier<? extends C> contextSupplier)
      Factory method to create a new ApplicationContextAssertProvider instance.
      CgetSourceApplicationContext()
      Return the original source ApplicationContext.
      <T extends C>
      T
      getSourceApplicationContext​(Class<T> requiredType)
      Return the original source ApplicationContext, casting it to the requested type.
      ThrowablegetStartupFailure()
      Return the failure that caused application context to fail or null if the context started without issue.
      • 从接口继承的方法 org.springframework.context.ApplicationContext

        getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
      • 从接口继承的方法 org.springframework.context.ApplicationEventPublisher

        publishEvent, publishEvent
      • 从接口继承的方法 org.springframework.beans.factory.BeanFactory

        containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
      • 从接口继承的方法 org.springframework.core.env.EnvironmentCapable

        getEnvironment
      • 从接口继承的方法 org.springframework.beans.factory.HierarchicalBeanFactory

        containsLocalBean, getParentBeanFactory
      • 从接口继承的方法 org.springframework.beans.factory.ListableBeanFactory

        containsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation
      • 从接口继承的方法 org.springframework.context.MessageSource

        getMessage, getMessage, getMessage
      • 从接口继承的方法 org.springframework.core.io.ResourceLoader

        getClassLoader, getResource
      • 从接口继承的方法 org.springframework.core.io.support.ResourcePatternResolver

        getResources
    • 方法详细资料

      • assertThat

        @Deprecated
        ApplicationContextAssert<CassertThat()
        已过时。
        use standard AssertJ assertThat(context)... calls instead.
        Return an assert for AspectJ.
        指定者:
        assertThat 在接口中 org.assertj.core.api.AssertProvider<C extends org.springframework.context.ApplicationContext>
        返回:
        an AspectJ assert
      • getSourceApplicationContext

        <T extends C> T getSourceApplicationContext​(Class<T> requiredType)
        Return the original source ApplicationContext, casting it to the requested type.
        类型参数:
        T - the context type
        参数:
        requiredType - the required context type
        返回:
        the source application context
        抛出:
        IllegalStateException - if the source context failed to start
      • getStartupFailure

        Throwable getStartupFailure()
        Return the failure that caused application context to fail or null if the context started without issue.
        返回:
        the startup failure or null