Class TestCaseTools


  • public class TestCaseTools
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      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

      Constructors 
      Constructor Description
      TestCaseTools()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.String getSuffix​(char ch, java.lang.String str)  
      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)  
      private static java.lang.String makeTestSuiteName​(java.lang.Class cls)  
      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)
      • getSuffix

        private static java.lang.String getSuffix​(char ch,
                                                  java.lang.String str)
      • makeTestSuiteName

        private static java.lang.String makeTestSuiteName​(java.lang.Class cls)
      • 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.