Here are some tantalizing hints. I'll look at this tomorrow if someone hasn't beaten me to it, but there are better things I can be doing late Friday night than messing around with stupid tests <G>.
From : http://junit.sourceforge.net/doc/cookbook/cookbook.htm
Once you have tests, you'll want to run them. JUnit provides tools to define the suite to be run and to display its results. To run tests and see the results on the console, run this from a Java program:
or this from the command line, with both your test class and junit on the classpath:org.junit.runner.JUnitCore.runClasses(TestClass1.class, ...);
From: http://kentbeck.github.com/junit/javadoc/4.7/index.htmljava org.junit.runner.JUnitCore TestClass1.class [...other test classes...]
On Fri, Feb 26, 2010 at 3:31 PM, Jason Rutherglen
>> I've never tried to learn a command-line invocation of a testShould work from the IDE provided you've set the working directory to
>> case for a single test method, I've always just used the IDE
>> to run individual methods....
> Right, I've been doing bunches of Solr dev which for me only works
> from the command line... I'm open to suggestions though!
But I'd love a way to run a single method from the command line too.