Project Wonder 5.0

er.testrunner
Class ERXTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by er.testrunner.ERXTestCase
All Implemented Interfaces:
junit.framework.Test

public class ERXTestCase
extends junit.framework.TestCase

Basic test case class to do unit testing inside of WO. Provides an editingContext that is disposed on every setup/tearDown.


Constructor Summary
ERXTestCase(java.lang.String name)
           
 
Method Summary
static void assertValidates(boolean expectsSuccess, com.webobjects.eocontrol.EOValidation validationObject)
           
protected  void deletePersistentObjects()
           
protected  com.webobjects.eocontrol.EOEditingContext editingContext()
           
protected  boolean eoHasBeenSaved(com.webobjects.eocontrol.EOEnterpriseObject anEnterpriseObject)
           
protected  void registerPersistentRootObjectForDeletion(com.webobjects.eocontrol.EOEnterpriseObject anEnterpriseObject)
           
 void runBare()
           
protected  void saveChanges(boolean assumeSuccess)
           
protected  void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, 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

ERXTestCase

public ERXTestCase(java.lang.String name)
Method Detail

setUp

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

registerPersistentRootObjectForDeletion

protected void registerPersistentRootObjectForDeletion(com.webobjects.eocontrol.EOEnterpriseObject anEnterpriseObject)

deletePersistentObjects

protected void deletePersistentObjects()

eoHasBeenSaved

protected boolean eoHasBeenSaved(com.webobjects.eocontrol.EOEnterpriseObject anEnterpriseObject)

tearDown

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

runBare

public void runBare()
             throws java.lang.Throwable
Overrides:
runBare in class junit.framework.TestCase
Throws:
java.lang.Throwable

saveChanges

protected void saveChanges(boolean assumeSuccess)

editingContext

protected com.webobjects.eocontrol.EOEditingContext editingContext()

assertValidates

public static void assertValidates(boolean expectsSuccess,
                                   com.webobjects.eocontrol.EOValidation validationObject)

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.