org.apache.tapestry.form.validator
Class BaseValidatorTestCase

java.lang.Object
  extended by BaseComponentTestCase
      extended by org.apache.tapestry.form.validator.BaseValidatorTestCase
Direct Known Subclasses:
TestEmail, TestIdentity, TestMax, TestMaxDate, TestMaxLength, TestMin, TestMinDate, TestMinLength, TestPattern, TestRequired, TestValidatorWrapper

public abstract class BaseValidatorTestCase
extends BaseComponentTestCase

Base class for writing Validator tests.

Since:
4.0
Author:
Howard Lewis Ship

Constructor Summary
BaseValidatorTestCase()
           
 
Method Summary
protected  FormComponentContributorContext newContext()
           
protected  IFormComponent newField()
           
protected  IFormComponent newField(boolean disabled)
           
protected  IFormComponent newField(String displayName)
           
protected  IFormComponent newField(String displayName, boolean disabled)
           
protected  IFormComponent newField(String displayName, String clientId)
           
protected  IFormComponent newField(String displayName, String clientId, boolean disabled)
           
protected  ValidationMessages newMessages()
           
protected  ValidationMessages newMessages(String messageOverride, String messageKey, Object[] parameters, String result)
           
protected  void trainFormatMessage(ValidationMessages messages, String messageOverride, String messageKey, Object[] parameters, String result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseValidatorTestCase

public BaseValidatorTestCase()
Method Detail

newField

protected IFormComponent newField(String displayName,
                                  boolean disabled)

newField

protected IFormComponent newField(String displayName)

newField

protected IFormComponent newField(String displayName,
                                  String clientId)

newField

protected IFormComponent newField(String displayName,
                                  String clientId,
                                  boolean disabled)

newField

protected IFormComponent newField(boolean disabled)

newField

protected IFormComponent newField()

newMessages

protected ValidationMessages newMessages()

newMessages

protected ValidationMessages newMessages(String messageOverride,
                                         String messageKey,
                                         Object[] parameters,
                                         String result)

trainFormatMessage

protected void trainFormatMessage(ValidationMessages messages,
                                  String messageOverride,
                                  String messageKey,
                                  Object[] parameters,
                                  String result)

newContext

protected FormComponentContributorContext newContext()


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