50
Getting Started with JUnit
} protected void tearDown() throws Exception { } public static void main (String [] args){ TestRunner.run(HashMapTest.class); } }
Now that we have covered the basics of JUnit, it is time to see it applied to our application. Tip: You can also group tests together using Ant’s batchtest subtask under the junit task. I usually use both. I use batchtest to generate reports, and I use test suites to quickly run related tests in my IDE.
Jakarta Struts Live