org.apache.commons.math
Class RetryTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.math.RetryTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
EmpiricalDistributionTest, RandomDataTest, ValueServerTest

public abstract class RetryTestCase
extends junit.framework.TestCase

A TestCase that retries tests when assertions fail.

If one or more tests throw an AssertionFailedError, all tests are repeated one time.

Errors or exceptions other than AssertionFailedError do not lead to retries.

Version:
$Revision: 762087 $ $Date: 2009-04-05 10:20:18 -0400 (Sun, 05 Apr 2009) $

Constructor Summary
RetryTestCase()
           
RetryTestCase(String arg0)
           
 
Method Summary
protected  void runTest()
          Override runTest() to catch AssertionFailedError and retry
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RetryTestCase

public RetryTestCase()

RetryTestCase

public RetryTestCase(String arg0)
Method Detail

runTest

protected void runTest()
                throws Throwable
Override runTest() to catch AssertionFailedError and retry

Overrides:
runTest in class junit.framework.TestCase
Throws:
Throwable


Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.