All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webframe.test.BaseSpringTests Maven / Gradle / Ivy


package org.webframe.test;

import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
import org.webframe.support.driver.exception.DriverNotExistException;
import org.webframe.support.driver.loader.ModulePluginLoader;
import org.webframe.support.driver.loader.PropertiesModulePluginLoader;
import org.webframe.support.util.SystemLogUtils;

/**
 * @author huangguoqing
 * @version $Id: codetemplates.xml,v 1.3 2009/05/05 02:30:07 huangguoqing Exp $ Create: 2010-12-24
 *          下午09:09:44
 */
@RunWith(WFSpringJUnit4Runner.class)
@ContextConfiguration(locations = {
	"wf-test.xml"})
public class BaseSpringTests extends AbstractJUnit4SpringContextTests {

	public BaseSpringTests() {
		this(new PropertiesModulePluginLoader());
	}

	public BaseSpringTests(ModulePluginLoader modulePluginLoader) {
		try {
			modulePluginLoader.loadModulePlugin();
		} catch (DriverNotExistException e) {
			SystemLogUtils.errorPrintln(e.getMessage());
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy