|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.shale.test.base.AbstractJsfTestCase
org.ajax4jsf.tests.AbstractAjax4JsfTestCase
public class AbstractAjax4JsfTestCase
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
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 |
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |