testengine.java
来自「pojo的mvc框架」· Java 代码 · 共 47 行
JAVA
47 行
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 + =
减小字号Ctrl + -
显示快捷键?