org.ajax4jsf.tests
Class AbstractAjax4JsfTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.shale.test.base.AbstractJsfTestCase
              extended by org.ajax4jsf.tests.AbstractAjax4JsfTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractJspTestCase, AbstractThreadedAjax4JsfTestCase

public class AbstractAjax4JsfTestCase
extends org.apache.shale.test.base.AbstractJsfTestCase

Base class for testing components and renderers in a4j framework Simulate a4j environment for perform requests. For concrete tests MUST be overriden setUp/tearDown methods, even if no actions performed - it need for junit initializations. All output html collected and can be checked by htmlunit

Version:
$Revision: 1.1.2.5 $ $Date: 2007/02/20 20:58:08 $
Author:
shura (latest modification by $Author: ishabalov $)

Field Summary
protected  org.ajax4jsf.context.AjaxContext ajaxContext
           
protected  javax.el.ELContext elContext
           
protected  javax.el.ExpressionFactory expressionFactory
           
protected static java.lang.String SLASHED_RESOURCE_URI_PREFIX
          Deprecated. 
protected  org.ajax4jsf.renderkit.ChameleonRenderKitImpl vcpRenderKit
          Initialised instance of VCP render kit.
protected  com.gargoylesoftware.htmlunit.WebClient webClient
          The htmlunit web client for this test case.
protected  com.gargoylesoftware.htmlunit.MockWebConnection webConnection
          Mock web connection for accept stored content of JSF encoding.
protected  org.ajax4jsf.webapp.WebXml webXml
           
protected  org.apache.shale.test.mock.MockResponseWriter writer
          Instance of Mock ResponseWriter , created by setupResponseWriter
 
Fields inherited from class org.apache.shale.test.base.AbstractJsfTestCase
application, config, externalContext, facesContext, facesContextFactory, lifecycle, lifecycleFactory, renderKit, request, response, servletContext, session
 
Constructor Summary
AbstractAjax4JsfTestCase(java.lang.String name)
           
 
Method Summary
protected  javax.faces.component.UIComponent createComponent(java.lang.String type, java.lang.String className, java.lang.String rendererType, java.lang.Class rendererClazz, java.lang.Class skinRendererClazz)
          Create component with given render kit and unique Id from ViewRoot.
protected  com.gargoylesoftware.htmlunit.WebClient createWebClient()
           
static void evaluate(Condition condition)
           
protected  java.lang.Integer getCountValidScripts(com.gargoylesoftware.htmlunit.html.HtmlPage view, java.util.Set<java.lang.String> predefinedScripts, boolean isPageAvailabilityCheck)
          This function return count of

Copyright © 2009. All Rights Reserved.