It seemed to me that this should be easy to do, based on what I've heard about JUnit. So I went a-googling and I found [an article|http://clarkware.com/articles/JUnitPrimer.html] that explained how to run JUnit tests. It said:
"To run our test case using the textual user interface, use:
java junit.textui.TestRunner ShoppingCartTest"
So there you go. Put this into your Java program:
Have you tried the Eclipse IDE? I use it to run JUnit tests on Mac OS X and Windows XP - just press a button - no command line.. er.. commands. Probably works for other platforms too. Other IDEs might have the same functionality.
Or you could code a TestSuite...
Jeff Langr's book, Agile Java covers JUnit testing quite comprehensively.