Package jfun.yan.web

Examples of jfun.yan.web.YanLoaderListener


    sc.setInitParameter(YanLoader.CONFIG_FILE_PARAM, "/WEB-INF/yancontainer.xml");
    sc.setInitParameter(YanLoader.USE_SPRING, "true");
    verifyListener(sc, "ba");
  }
  private void verifyListener(ServletContext sc, String beanname){
    ServletContextListener listener = new YanLoaderListener();
    ServletContextEvent event = new ServletContextEvent(sc);
    listener.contextInitialized(event);
    final BankAccount acct = verifyBean(sc, beanname);
    listener.contextDestroyed(event);
    assertTrue(acct.isDestroyed());
  }
View Full Code Here

TOP

Related Classes of jfun.yan.web.YanLoaderListener

Copyright © 2018 www.massapicom. 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.