org.apache.myfaces.component.behavior
Class AbstractClientBehaviorTestCase

java.lang.Object
  extended by org.apache.myfaces.test.base.junit4.AbstractJsfTestCase
      extended by org.apache.myfaces.component.behavior.AbstractClientBehaviorTestCase
Direct Known Subclasses:
DivClientBehaviorTest, DocumentBodyClientBehaviorRendererTest, HtmlCalendarInlineClientBehaviorRendererTest, HtmlCalendarPopupClientBehaviorRendererTest, HtmlCommandButtonClientBehaviorRendererTest, HtmlCommandLinkClientBehaviorRendererTest, HtmlDataListGridClientBehaviorRendererTest, HtmlDataListOLClientBehaviorRendererTest, HtmlDataListSimpleClientBehaviorRendererTest, HtmlDataListULClientBehaviorRendererTest, HtmlDataTableClientBehaviorRendererTest, HtmlDateClientBehaviorRendererTest, HtmlFileUploadClientBehaviorRendererTest, HtmlGraphicImageClientBehaviorRendererTest, HtmlLayoutClientBehaviorRendererTest, HtmlLayoutNavRightClientBehaviorRendererTest, HtmlLayoutUpsideDownClientBehaviorRendererTest, HtmlMessageClientBehaviorTest, HtmlMessagesClientBehaviorTest, HtmlNavigationClientBehaviorTest, HtmlNavigationMenuClientBehaviorTest, HtmlNewspaperTableClientBehaviorRendererTest, HtmlOutputLabelClientBehaviorRendererTest, HtmlOutputTextClientBehaviorTest, HtmlPanelGridClientBehaviorRendererTest, HtmlPanelGroupDivClientBehaviorTest, HtmlPanelGroupSpanClientBehaviorTest, HtmlPicklistClientBehaviorRendererTest, HtmlSecretClientBehaviorRendererTest, HtmlSelectBooleanCheckboxClientBehaviorRendererTest, HtmlSelectManyCheckboxClientBehaviorRendererTest, HtmlSelectManyListboxClientBehaviorRendererTest, HtmlSelectManyMenuClientBehaviorRendererTest, HtmlSelectOneListboxClientBehaviorRendererTest, HtmlSelectOneMenuClientBehaviorRendererTest, HtmlSelectOneRadioClientBehaviorRendererTest, HtmlSwapImageClientBehaviorRendererTest, HtmlTabbedPaneClientBehaviorTest, HtmlTextareaClientBehaviorRendererTest, HtmlTextClientBehaviorRendererTest, HtmlTextHelpClientBehaviorHelpTextRendererTest, HtmlTextHelpClientBehaviorRendererTest, SelectOneCountryClientBehaviorRendererTest, SelectOneLanguageClientBehaviorRendererTest, SelectOneRowClientBehaviorRendererTest, ToggleGroupClientBehaviorTest, ToggleLinkClientBehaviorRendererTest, TogglePanelClientBehaviorTest

public abstract class AbstractClientBehaviorTestCase
extends org.apache.myfaces.test.base.junit4.AbstractJsfTestCase


Field Summary
protected  org.apache.myfaces.shared_tomahawk.util.FastWriter outputWriter
           
protected  org.apache.myfaces.test.config.ConfigParser parser
           
protected  javax.faces.context.ResponseWriter writer
           
 
Fields inherited from class org.apache.myfaces.test.base.junit4.AbstractJsfTestCase
application, config, externalContext, facesContext, facesContextFactory, lifecycle, lifecycleFactory, renderKit, request, response, servletContext, session
 
Constructor Summary
AbstractClientBehaviorTestCase()
           
 
Method Summary
 int checkClientBehaviorRenderedOnClientEventProperty(String output, int start, HtmlRenderedClientEventAttr attr)
           
 int checkClientBehaviorRenderedOnClientEventPropertyAndHtmlValue(String output, int start, HtmlRenderedClientEventAttr attr, String value)
           
protected abstract  javax.faces.component.UIComponent createComponentToTest()
           
protected  void dettachFromView()
           
protected abstract  HtmlRenderedClientEventAttr[] getClientBehaviorHtmlRenderedAttributes()
           
protected  void setUpApplication()
           
protected  void setUpJSFObjects()
           
protected  void setUpRenderKit()
           
protected  void setUpServletObjects()
           
 void testClientBehaviorHolderRendersId()
          Components that render client behaviors should always render "id" and "name" attribute
 void testClientBehaviorHolderRendersName()
          Components that render client behaviors should always render "id" and "name" attribute
 void testClientBehaviorRendered()
           
 void testClientBehaviorRenderedWithHtmlAttribute()
           
 
Methods inherited from class org.apache.myfaces.test.base.junit4.AbstractJsfTestCase
setFactories, setUp, setUpExternalContext, setUpFacesContext, setUpLifecycle, setUpView, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

protected javax.faces.context.ResponseWriter writer

outputWriter

protected org.apache.myfaces.shared_tomahawk.util.FastWriter outputWriter

parser

protected org.apache.myfaces.test.config.ConfigParser parser
Constructor Detail

AbstractClientBehaviorTestCase

public AbstractClientBehaviorTestCase()
Method Detail

getClientBehaviorHtmlRenderedAttributes

protected abstract HtmlRenderedClientEventAttr[] getClientBehaviorHtmlRenderedAttributes()

createComponentToTest

protected abstract javax.faces.component.UIComponent createComponentToTest()

dettachFromView

protected void dettachFromView()

setUpServletObjects

protected void setUpServletObjects()
                            throws Exception
Overrides:
setUpServletObjects in class org.apache.myfaces.test.base.junit4.AbstractJsfTestCase
Throws:
Exception

setUpJSFObjects

protected void setUpJSFObjects()
                        throws Exception
Overrides:
setUpJSFObjects in class org.apache.myfaces.test.base.junit4.AbstractJsfTestCase
Throws:
Exception

setUpApplication

protected void setUpApplication()
                         throws Exception
Overrides:
setUpApplication in class org.apache.myfaces.test.base.junit4.AbstractJsfTestCase
Throws:
Exception

setUpRenderKit

protected void setUpRenderKit()
                       throws Exception
Overrides:
setUpRenderKit in class org.apache.myfaces.test.base.junit4.AbstractJsfTestCase
Throws:
Exception

testClientBehaviorHolderRendersId

public void testClientBehaviorHolderRendersId()
Components that render client behaviors should always render "id" and "name" attribute


testClientBehaviorHolderRendersName

public void testClientBehaviorHolderRendersName()
Components that render client behaviors should always render "id" and "name" attribute


testClientBehaviorRendered

public void testClientBehaviorRendered()

checkClientBehaviorRenderedOnClientEventProperty

public int checkClientBehaviorRenderedOnClientEventProperty(String output,
                                                            int start,
                                                            HtmlRenderedClientEventAttr attr)

testClientBehaviorRenderedWithHtmlAttribute

public void testClientBehaviorRenderedWithHtmlAttribute()

checkClientBehaviorRenderedOnClientEventPropertyAndHtmlValue

public int checkClientBehaviorRenderedOnClientEventPropertyAndHtmlValue(String output,
                                                                        int start,
                                                                        HtmlRenderedClientEventAttr attr,
                                                                        String value)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.