org.ajax4jsf.tests
Class MockUIComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.ajax4jsf.tests.MockUIComponent
All Implemented Interfaces:
javax.faces.component.StateHolder

public class MockUIComponent
extends javax.faces.component.UIComponentBase

"probe" component, to chek runs of the component methods during tests.

Author:
asmirnov

Field Summary
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
MockUIComponent()
           
 
Method Summary
 void broadcast(javax.faces.event.FacesEvent event)
           
 void decode(javax.faces.context.FacesContext context)
           
 java.lang.String getFamily()
           
 int getRunsBroadcast()
           
 int getRunsDecode()
           
 int getRunsInvokeOnComponent()
           
 int getRunsProcessDecodes()
           
 int getRunsProcessUpdates()
           
 int getRunsProcessValidators()
           
 boolean invokeOnComponent(javax.faces.context.FacesContext context, java.lang.String clientId, javax.faces.component.ContextCallback callback)
           
 void processDecodes(javax.faces.context.FacesContext context)
           
 void processUpdates(javax.faces.context.FacesContext context)
           
 void processValidators(javax.faces.context.FacesContext context)
           
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockUIComponent

public MockUIComponent()
Method Detail

getRunsProcessDecodes

public int getRunsProcessDecodes()
Returns:
the runsProcessDecodes

getRunsDecode

public int getRunsDecode()
Returns:
the runsDecode

getRunsBroadcast

public int getRunsBroadcast()
Returns:
the runsBroadcast

getRunsInvokeOnComponent

public int getRunsInvokeOnComponent()
Returns:
the runsInvokeOnComponent

getRunsProcessUpdates

public int getRunsProcessUpdates()
Returns:
the runsProcessUpdates

getRunsProcessValidators

public int getRunsProcessValidators()
Returns:
the runsProcessValidators

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

processDecodes

public void processDecodes(javax.faces.context.FacesContext context)
Overrides:
processDecodes in class javax.faces.component.UIComponentBase

decode

public void decode(javax.faces.context.FacesContext context)
Overrides:
decode in class javax.faces.component.UIComponentBase

broadcast

public void broadcast(javax.faces.event.FacesEvent event)
               throws javax.faces.event.AbortProcessingException
Overrides:
broadcast in class javax.faces.component.UIComponentBase
Throws:
javax.faces.event.AbortProcessingException

invokeOnComponent

public boolean invokeOnComponent(javax.faces.context.FacesContext context,
                                 java.lang.String clientId,
                                 javax.faces.component.ContextCallback callback)
                          throws javax.faces.FacesException
Overrides:
invokeOnComponent in class javax.faces.component.UIComponentBase
Throws:
javax.faces.FacesException

processUpdates

public void processUpdates(javax.faces.context.FacesContext context)
Overrides:
processUpdates in class javax.faces.component.UIComponentBase

processValidators

public void processValidators(javax.faces.context.FacesContext context)
Overrides:
processValidators in class javax.faces.component.UIComponentBase


Copyright © 2009. All Rights Reserved.