org.apache.tapestry.form
Class FormComponentContributorTestCase

java.lang.Object
  extended by BaseComponentTestCase
      extended by org.apache.tapestry.junit.TapestryTestCase
          extended by org.apache.tapestry.form.FormComponentContributorTestCase
Direct Known Subclasses:
TestBigDecimalTranslator, TestDateTranslator, TestNumberTranslator, TestStringTranslator

public abstract class FormComponentContributorTestCase
extends TapestryTestCase

Abstract test case for FormComponentContributor.

Since:
4.0
Author:
Paul Ferraro

Field Summary
protected  IFormComponent _component
           
protected  IRequestCycle _cycle
           
protected  IEngine _engine
           
protected  IForm _form
           
protected  IPage _page
           
protected  PageRenderSupport _pageRenderSupport
           
 
Fields inherited from class org.apache.tapestry.junit.TapestryTestCase
IS_JDK13
 
Constructor Summary
FormComponentContributorTestCase()
           
 
Method Summary
protected  void addScript(String script)
           
protected  IRequestCycle newCycle()
           
protected  IFormComponent newField()
           
protected  IFormComponent newField(String displayName)
           
protected  IFormComponent newField(String displayName, String clientId, int count)
           
protected  IFormComponent newFieldWithClientId(String clientId)
           
protected  ValidationMessages newValidationMessages(Locale locale)
           
protected  IMarkupWriter newWriter()
           
protected  void trainBuildMessage(ValidationMessages messages, String overrideMessage, String key, Object[] parameters, String result)
           
protected  void trainGetLocale(ValidationMessages messages, Locale locale)
           
protected  void trainTrim(FormComponentContributorContext context, String fieldId)
           
 
Methods inherited from class org.apache.tapestry.junit.TapestryTestCase
checkException, checkList, checkList, checkProperty, createValueConverter, getSpecificationResourceLocation, newBindingSource, newComponent, parseApp, parseComponent, parseLib, parsePage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_component

protected IFormComponent _component

_page

protected IPage _page

_cycle

protected IRequestCycle _cycle

_form

protected IForm _form

_engine

protected IEngine _engine

_pageRenderSupport

protected PageRenderSupport _pageRenderSupport
Constructor Detail

FormComponentContributorTestCase

public FormComponentContributorTestCase()
Method Detail

addScript

protected void addScript(String script)

newField

protected IFormComponent newField(String displayName)

newField

protected IFormComponent newField(String displayName,
                                  String clientId,
                                  int count)

newFieldWithClientId

protected IFormComponent newFieldWithClientId(String clientId)

trainBuildMessage

protected void trainBuildMessage(ValidationMessages messages,
                                 String overrideMessage,
                                 String key,
                                 Object[] parameters,
                                 String result)

trainGetLocale

protected void trainGetLocale(ValidationMessages messages,
                              Locale locale)

newField

protected IFormComponent newField()

newWriter

protected IMarkupWriter newWriter()

newCycle

protected IRequestCycle newCycle()

newValidationMessages

protected ValidationMessages newValidationMessages(Locale locale)

trainTrim

protected void trainTrim(FormComponentContributorContext context,
                         String fieldId)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.