basetest.java
来自「Struts+Spring开发」· Java 代码 · 共 29 行
JAVA
29 行
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 + =
减小字号Ctrl + -
显示快捷键?