⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basetest.java

📁 Struts+Spring开发
💻 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 + -