org.alfresco.repo.dictionary.constraint
Class ConstraintsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.dictionary.constraint.ConstraintsTest
All Implemented Interfaces:
junit.framework.Test

public class ConstraintsTest
extends junit.framework.TestCase

This file must be saved using UTF-8.

See Also:
Constraint, AbstractConstraint, RegexConstraint

Constructor Summary
ConstraintsTest()
           
 
Method Summary
protected  void setUp()
           
 void testCollections()
          ensure that the default handling of checks on collections will work
 void testListOfValuesConstraint()
           
 void testNull()
           
 void testNumericRangeConstraint()
           
 void testRegexConstraint()
           
 void testRegexConstraintFilename()
           
 void testStringLengthConstraint()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstraintsTest

public ConstraintsTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testCollections

public void testCollections()
                     throws java.lang.Exception
ensure that the default handling of checks on collections will work

Throws:
java.lang.Exception

testNull

public void testNull()
              throws java.lang.Exception
Throws:
java.lang.Exception

testStringLengthConstraint

public void testStringLengthConstraint()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testListOfValuesConstraint

public void testListOfValuesConstraint()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testNumericRangeConstraint

public void testNumericRangeConstraint()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testRegexConstraint

public void testRegexConstraint()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testRegexConstraintFilename

public void testRegexConstraintFilename()
                                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.