basedaotestcase.java
来自「Spring的注入模式(一) 这个压缩包里包括的教程: Manning_-_」· Java 代码 · 共 23 行
JAVA
23 行
package org.appfuse.dao;
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.ClassPathXmlApplicationContext;
/**
* Base class for DAO TestCases.
* @author Matt Raible
*/
public class BaseDAOTestCase extends TestCase {
protected static Log log = LogFactory.getLog(BaseDAOTestCase.class);
protected ApplicationContext ctx = null;
public BaseDAOTestCase() {
String[] paths = {"/WEB-INF/applicationContext.xml"};
ctx = new ClassPathXmlApplicationContext(paths);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?