📄 basetest.java
字号:
package org.ssi;
import junit.framework.TestCase;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
public class BaseTest extends TestCase {
protected final Log log = LogFactory.getLog(this.getClass());
protected ApplicationContext context = null;
protected void setUp() throws Exception {
String[] config = {
"classpath:app-context-web.xml",
"classpath:app-context-ibatis.xml",
"classpath:app-context-biz.xml" };
this.context = new FileSystemXmlApplicationContext(config);
}
protected void tearDown() throws Exception {
this.context = null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -