From: Nir S. <ni...@gm...> - 2008-06-09 13:30:08
|
This patch correct the example of how to run junit from the console. Index: doc/cookbook/cookbook.htm =================================================================== RCS file: /cvsroot/junit/junit/doc/cookbook/cookbook.htm,v retrieving revision 1.10 diff -u -r1.10 cookbook.htm --- doc/cookbook/cookbook.htm 31 May 2007 14:49:09 -0000 1.10 +++ doc/cookbook/cookbook.htm 9 Jun 2008 13:28:01 -0000 @@ -102,7 +102,7 @@ to define the suite to be run and to display its results. To run tests and see the results on the console, run: <blockquote> - < pre > <tt>org.junit.runner.JUnitCore.runClasses(TestClass1.class, ...); +<pre><tt>java org.junit.runner.JUnitCore TestClass1 TestClass2 ... </tt></pre> </blockquote> You make your JUnit 4 test classes accessible to a TestRunner designed to work with earlier versions of JUnit, |