Summary


Now that weve taken a look at jfcUnit and what it can do, what does it offer over the other testing frameworks?

  • Tight JUnit integration: jfcUnit extends the JUnit TestCase class and adds in the necessary pieces for you to test your Swing application right JUnit.

  • Ease of use: As weve seen, it is relatively easy to grab the appropriate component using the ComponentFinder.

  • Easy component testing: jfcUnits TestHelper class offers us several methods to aid us in testing our interfaces with mouse clicks and drags , mouse wheel movements, and text entry. This wide variety of simulations is enough to perform most test cases available.

  • XML Tests: jfcUnit also offers the ability to record and perform tests on your classes using an XML testing file. We didnt cover here because we felt the support for pure Java is currently superior to the XML support; hopefully this will improve in future releases of jfcUnit. For more information on the XML part of jfcUnit go to http://jfcunit. sourceforge .net/jfcunitxml.htm

What are some of the disadvantages of jfcUnit?

  • Functionality Testing: If you are looking for more functionality testing versus unit testing, Jemmy may be a better choice.




Professional Java Tools for Extreme Programming
Professional Java Tools for Extreme Programming: Ant, XDoclet, JUnit, Cactus, and Maven (Programmer to Programmer)
ISBN: 0764556177
EAN: 2147483647
Year: 2003
Pages: 228

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net