📄 abstracttest.java
字号:
package com.ejsun.entapps.test;
import junit.framework.TestCase;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import com.ejsun.entapps.service.InstallService;
import com.ejsun.entapps.service.ServiceLocator;
import com.ejsun.entapps.service.impl.SpringServiceLocator;
/**
* @author Quake Wang
* @since 2004-4-5
* @version $Revision: 1.1 $
*
**/
public abstract class AbstractTest extends TestCase {
protected static ServiceLocator serviceLocator;
protected void setUp() throws Exception {
if (serviceLocator == null) {
serviceLocator =
new SpringServiceLocator(
new XmlBeanFactory(new ClassPathResource("test_application_content.xml", getClass())));
((InstallService) serviceLocator.getService("installService")).install();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -