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

📄 testengine.java

📁 pojo的mvc框架
💻 JAVA
字号:
package xyz.frame.test;import xyz.frame.config.ConfigException;import xyz.frame.core.ControllerFactory;import xyz.frame.core.XyzController;/** * A test engine. *  * @author Guilherme Silveira *  */public class TestEngine {	private final XyzController controller;	private TestEngine() throws TestConfigException {		try {			this.controller = ControllerFactory					.configure(new MockedServletContext());		} catch (ConfigException e) {			throw new TestConfigException(e);		}	}	/**	 * Loads xyz configuration files and setups the engine	 * 	 * @return the new engine	 * @throws ConfigException	 *             some configuration problem was found	 */	public static TestEngine createEngine() throws TestConfigException {		return new TestEngine();	}	/**	 * Creates a new test session	 * 	 * @return a test session	 */	public TestSession createSession() {		return new DefaultTestSession(controller);	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -