org.apache.myfaces.component.html.ext.behavior
Class HtmlMessagesClientBehaviorTest

java.lang.Object
  extended by org.apache.myfaces.test.base.junit4.AbstractJsfTestCase
      extended by org.apache.myfaces.component.behavior.AbstractClientBehaviorTestCase
          extended by org.apache.myfaces.component.html.ext.behavior.HtmlMessagesClientBehaviorTest

public class HtmlMessagesClientBehaviorTest
extends AbstractClientBehaviorTestCase


Field Summary
 
Fields inherited from class org.apache.myfaces.component.behavior.AbstractClientBehaviorTestCase
outputWriter, parser, 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
HtmlMessagesClientBehaviorTest()
           
 
Method Summary
protected  javax.faces.component.UIComponent createComponentToTest()
           
protected  HtmlRenderedClientEventAttr[] getClientBehaviorHtmlRenderedAttributes()
           
 void setUp()
           
 void tearDown()
           
 void testClientBehaviorHolderRendersId()
          Components that render client behaviors should always render "id" and "name" attribute
 void testClientBehaviorHolderRendersName()
          span tag does not have name attribute
 void testClientBehaviorRendered()
           
 void testClientBehaviorRenderedWithHtmlAttribute()
           
 
Methods inherited from class org.apache.myfaces.component.behavior.AbstractClientBehaviorTestCase
checkClientBehaviorRenderedOnClientEventProperty, checkClientBehaviorRenderedOnClientEventPropertyAndHtmlValue, dettachFromView, setUpApplication, setUpJSFObjects, setUpRenderKit, setUpServletObjects
 
Methods inherited from class org.apache.myfaces.test.base.junit4.AbstractJsfTestCase
setFactories, setUpExternalContext, setUpFacesContext, setUpLifecycle, setUpView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlMessagesClientBehaviorTest

public HtmlMessagesClientBehaviorTest()
Method Detail

setUp

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

tearDown

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

createComponentToTest

protected javax.faces.component.UIComponent createComponentToTest()
Specified by:
createComponentToTest in class AbstractClientBehaviorTestCase

getClientBehaviorHtmlRenderedAttributes

protected HtmlRenderedClientEventAttr[] getClientBehaviorHtmlRenderedAttributes()
Specified by:
getClientBehaviorHtmlRenderedAttributes in class AbstractClientBehaviorTestCase

testClientBehaviorHolderRendersName

public void testClientBehaviorHolderRendersName()
span tag does not have name attribute

Overrides:
testClientBehaviorHolderRendersName in class AbstractClientBehaviorTestCase

testClientBehaviorHolderRendersId

public void testClientBehaviorHolderRendersId()
Description copied from class: AbstractClientBehaviorTestCase
Components that render client behaviors should always render "id" and "name" attribute

Overrides:
testClientBehaviorHolderRendersId in class AbstractClientBehaviorTestCase

testClientBehaviorRendered

public void testClientBehaviorRendered()
Overrides:
testClientBehaviorRendered in class AbstractClientBehaviorTestCase

testClientBehaviorRenderedWithHtmlAttribute

public void testClientBehaviorRenderedWithHtmlAttribute()
Overrides:
testClientBehaviorRenderedWithHtmlAttribute in class AbstractClientBehaviorTestCase


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