org.infoglue.cms.entities
Class ValidationTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.infoglue.cms.entities.ValidationTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CategoryTest, EditionBrowserTest

public class ValidationTestCase
extends junit.framework.TestCase

Base class to help with validation test cases

Author:
Frank Febbraro (frank@phase2technology.com)

Constructor Summary
ValidationTestCase()
           
 
Method Summary
protected  void checkFailure(BaseEntityVO vo)
          Use this to assert that there are NO validation errors
protected  void checkSuccess(BaseEntityVO vo)
          Use this to assert that there ARE validation errors
protected  java.lang.String generateString(int length)
          Generates a String of the supplied length
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationTestCase

public ValidationTestCase()
Method Detail

checkFailure

protected void checkFailure(BaseEntityVO vo)
                     throws java.lang.Exception
Use this to assert that there are NO validation errors

Throws:
java.lang.Exception

checkSuccess

protected void checkSuccess(BaseEntityVO vo)
                     throws java.lang.Exception
Use this to assert that there ARE validation errors

Throws:
java.lang.Exception

generateString

protected java.lang.String generateString(int length)
Generates a String of the supplied length



Copyright © 2005 InfoGlue.org All Rights Reserved.