AbstractSingleSpringContextTests.java 文件源码

java
阅读 28 收藏 0 点赞 0 评论 0

项目:gemini.blueprint 作者:
/**
 * Return the ApplicationContext that this base class manages; may be
 * {@code null}.
 */
public final ConfigurableApplicationContext getApplicationContext() {
    // lazy load, in case setUp() has not yet been called.
    if (this.applicationContext == null) {
        try {
            this.applicationContext = getContext(contextKey());
        }
        catch (Exception e) {
            // log and continue...
            if (this.logger.isDebugEnabled()) {
                this.logger.debug("Caught exception while retrieving the ApplicationContext for test [" +
                        getClass().getName() + "." + getName() + "].", e);
            }
        }
    }

    return this.applicationContext;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号