org.apache.tapestry.valid
Class TestStringValidator

java.lang.Object
  extended by BaseComponentTestCase
      extended by org.apache.tapestry.junit.TapestryTestCase
          extended by org.apache.tapestry.valid.BaseValidatorTestCase
              extended by org.apache.tapestry.valid.TestStringValidator

public class TestStringValidator
extends BaseValidatorTestCase

Tests the StringValidatorclass.

Since:
1.0.8
Author:
Howard Lewis Ship

Field Summary
 
Fields inherited from class org.apache.tapestry.junit.TapestryTestCase
IS_JDK13
 
Constructor Summary
TestStringValidator()
           
 
Method Summary
 void resetValidator()
           
 void testOverrideMinimumMessage()
           
 void testOverrideRequiredMessage()
           
 void testToObjectMinimumFail()
           
 void testToObjectMinimumNull()
          An empty string is not subject to the minimum length constraint.
 void testToObjectMinimumPass()
           
 void testToObjectRequiredFail()
           
 void testToObjectRequiredPass()
           
 void testToString()
           
 void testToStringNull()
           
 
Methods inherited from class org.apache.tapestry.valid.BaseValidatorTestCase
newField, newField, newField, newField, newField, newPage
 
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
 

Constructor Detail

TestStringValidator

public TestStringValidator()
Method Detail

resetValidator

public void resetValidator()

testToString

public void testToString()

testToStringNull

public void testToStringNull()

testToObjectRequiredFail

public void testToObjectRequiredFail()

testOverrideRequiredMessage

public void testOverrideRequiredMessage()

testToObjectRequiredPass

public void testToObjectRequiredPass()
                              throws ValidatorException
Throws:
ValidatorException

testToObjectMinimumFail

public void testToObjectMinimumFail()

testOverrideMinimumMessage

public void testOverrideMinimumMessage()

testToObjectMinimumPass

public void testToObjectMinimumPass()
                             throws ValidatorException
Throws:
ValidatorException

testToObjectMinimumNull

public void testToObjectMinimumNull()
                             throws ValidatorException
An empty string is not subject to the minimum length constraint.

Throws:
ValidatorException


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