org.glassfish.pfl.test
Class TestCaseTools

java.lang.Object
  extended by org.glassfish.pfl.test.TestCaseTools

public class TestCaseTools
extends java.lang.Object


Nested Class Summary
static class TestCaseTools.SingleInstanceTestSuite
          This is a special version of TestSuite that fixes, once and for all, the irritating design of JUnit to invoke the constructor multiple times on a test class.
static class TestCaseTools.TestSuiteType
           
 
Constructor Summary
TestCaseTools()
           
 
Method Summary
static junit.framework.TestSuite makeTestSuite(java.lang.Class cls)
          Method to create a collection of nested TestSuites out of nested classes.
static junit.framework.TestSuite makeTestSuite(java.lang.Class cls, TestCaseTools.TestSuiteType type)
           
static void reportTiming(int repCount, java.io.PrintStream out, java.util.List<TimedTest> timedTests)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCaseTools

public TestCaseTools()
Method Detail

reportTiming

public static void reportTiming(int repCount,
                                java.io.PrintStream out,
                                java.util.List<TimedTest> timedTests)

makeTestSuite

public static junit.framework.TestSuite makeTestSuite(java.lang.Class cls)
Method to create a collection of nested TestSuites out of nested classes. Can either create standard JUnit TestSuites, or SingleInstanceTestSuites.


makeTestSuite

public static junit.framework.TestSuite makeTestSuite(java.lang.Class cls,
                                                      TestCaseTools.TestSuiteType type)