📄 testapplicationcontextfactory.java
字号:
package com.pegasus.framework.test;
import junit.framework.TestCase;
import org.springframework.context.ApplicationContext;
import com.pegasus.framework.web.ApplicationContextFactory;
public class TestApplicationContextFactory extends TestCase {
private org.apache.log4j.Logger logger = org.apache.log4j.LogManager.getLogger(TestApplicationContextFactory.class);
public void testInit() {
System.out.println(TestApplicationContextFactory.class.getClassLoader().getResource(""));
ApplicationContext context = ApplicationContextFactory.getApplicationContext();
assertNotNull(context);
}
public static void main(String[] args) {
TestApplicationContextFactory test = new TestApplicationContextFactory();
test.testInit();
System.out.println("finish");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -