Examples of YanLoaderServlet


Examples of jfun.yan.web.YanLoaderServlet

public class YanLoaderTestCase extends TestCase {
  public void testContextLoaderServletWithDefaultContext() throws Exception {
    MockServletContext sc = new MyServletContext(".");
    sc.setInitParameter(YanLoader.CONFIG_FILE_PARAM,
        "tests/jfun/yan/web/yan.xml");
    HttpServlet servlet = new YanLoaderServlet();
    MockServletConfig config = new MockServletConfig();
    config.setServletContext(sc);
    servlet.init(config);
    final BankAccount acct = verifyBean(sc, "account");
    servlet.destroy();
    assertTrue("Destroyed", acct.isDestroyed());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.