1 2 package jsdsi; 3 4 import junit.framework.TestResult; 5 import junit.framework.TestSuite; 6 7 /*** 8 A TestSuite that prints its name when it starts running. 9 **/ 10 public class NamedTestSuite extends TestSuite 11 { 12 public NamedTestSuite(Class theClass, String name) 13 { 14 super(theClass, name); 15 } 16 public NamedTestSuite(String name) 17 { 18 super(name); 19 } 20 public void run(TestResult result) 21 { 22 System.out.println("Running "+getName()+":"); 23 super.run(result); 24 System.out.println(); 25 } 26 }

This page was automatically generated by Maven