org.apache.myfaces.extensions.validator.test.propval.constraintsource
Class AbstractConstraintSourceTestCase<T>

java.lang.Object
  extended by org.apache.myfaces.test.base.junit4.AbstractJsfConfigurableMockTestCase
      extended by org.apache.myfaces.extensions.validator.test.base.AbstractExValTestCase
          extended by org.apache.myfaces.extensions.validator.test.propval.AbstractPropertyValidationTestCase
              extended by org.apache.myfaces.extensions.validator.test.propval.constraintsource.AbstractConstraintSourceTestCase<T>
Direct Known Subclasses:
ConstraintSourceAwareValidation1TestCase, ConstraintSourceAwareValidation2TestCase, ConstraintSourceAwareValidation3TestCase, ConstraintSourceAwareValidation4TestCase, ConstraintSourceAwareValidation5TestCase, ConstraintSourceAwareValidation6TestCase

public abstract class AbstractConstraintSourceTestCase<T>
extends AbstractPropertyValidationTestCase


Field Summary
protected  T bean
           
protected  javax.faces.component.html.HtmlInputText inputComponent1
           
protected  javax.faces.component.html.HtmlInputText inputComponent2
           
protected  javax.faces.component.html.HtmlInputText inputComponent3
           
 
Fields inherited from class org.apache.myfaces.test.base.junit4.AbstractJsfConfigurableMockTestCase
application, config, externalContext, facesContext, facesContextFactory, lifecycle, lifecycleFactory, renderKit, request, response, servletContext, session
 
Constructor Summary
AbstractConstraintSourceTestCase()
           
 
Method Summary
protected  void assertComponentInvalid(javax.faces.component.UIInput uiInput)
           
protected  void assertComponentValid(javax.faces.component.UIInput uiInput)
           
protected  void createValueBindingForComponent(javax.faces.component.UIInput uiComponent, String valueBinding)
           
protected abstract  T getBeanToTest()
           
protected  void resetTestCase()
           
protected  void setUpTestCase()
           
protected  void setValueToValidate(javax.faces.component.UIInput uiComponent, String valueToValidate)
           
protected  void updateComponents()
           
protected  void validateComponents()
           
 
Methods inherited from class org.apache.myfaces.extensions.validator.test.propval.AbstractPropertyValidationTestCase
invokeStartupListeners, processCrossValidation
 
Methods inherited from class org.apache.myfaces.extensions.validator.test.base.AbstractExValTestCase
addInitializationParameters, addInitParameter, assertIdExists, assertNavigationBlocked, checkMessageCount, checkMessageCount, checkMessageSeverities, createRequestScopedBean, createValueBinding, getCustomConfigObjects, getCustomExtValCoreConfiguration, reset, resetExtValContext, resolveBean, setFactories, setUp, setUpApplication, setUpFacesContext, setUpRenderKit, setUpServletObjects
 
Methods inherited from class org.apache.myfaces.test.base.junit4.AbstractJsfConfigurableMockTestCase
setUpExternalContext, setUpJSFObjects, setUpLifecycle, setUpView, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputComponent1

protected javax.faces.component.html.HtmlInputText inputComponent1

inputComponent2

protected javax.faces.component.html.HtmlInputText inputComponent2

inputComponent3

protected javax.faces.component.html.HtmlInputText inputComponent3

bean

protected T bean
Constructor Detail

AbstractConstraintSourceTestCase

public AbstractConstraintSourceTestCase()
Method Detail

setUpTestCase

protected void setUpTestCase()
Overrides:
setUpTestCase in class AbstractExValTestCase

getBeanToTest

protected abstract T getBeanToTest()

resetTestCase

protected void resetTestCase()
Overrides:
resetTestCase in class AbstractExValTestCase

createValueBindingForComponent

protected void createValueBindingForComponent(javax.faces.component.UIInput uiComponent,
                                              String valueBinding)

setValueToValidate

protected void setValueToValidate(javax.faces.component.UIInput uiComponent,
                                  String valueToValidate)

validateComponents

protected void validateComponents()

updateComponents

protected void updateComponents()

assertComponentValid

protected void assertComponentValid(javax.faces.component.UIInput uiInput)

assertComponentInvalid

protected void assertComponentInvalid(javax.faces.component.UIInput uiInput)


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.