Package org.richfaces.test

Examples of org.richfaces.test.TestException


        // init servlet
        servlet.init(context);
      }
      defaultServlet.init(context);
    } catch (ServletException e) {
      throw new TestException("Servlet initialisation error ", e);
    }
    try {
      NamingManager.setInitialContextFactoryBuilder(new StagingInitialContextFactoryBuilder());
    } catch (NamingException e) {
      log.warning("Error set initial context factory builder.");
View Full Code Here


   * method to clean up testing environment.
   *
   */
  public void destroy() {
    if (!initialised) {
      throw new TestException("Staging server have not been initialised");
    }
    this.initialised = false;
    // Destroy session
    // TODO - destroy all threads.
    for (Iterator<ServerHttpSession> sessionIterator = sessionInstances.iterator(); sessionIterator.hasNext();) {
View Full Code Here

   *         server.
   * @throws {@link TestException} if no servlet found to process given URL.
   */
  public StagingConnection getConnection(URL url) {
    if (!initialised) {
      throw new TestException("Staging server have not been initialised");
    }
    return new StagingConnection(this, url);
  }
View Full Code Here

   *
   * @return context instance.
   */
  public ServletContext getContext() {
    if (!initialised) {
      throw new TestException("Staging server have not been initialised");
    }
    return contextProxy;
  }
View Full Code Here

TOP

Related Classes of org.richfaces.test.TestException

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.