Summary


This chapter demonstrated the extensibility of the JUnit framework by showing several test decorators from JUnitPerf and the JUnit extensions. We also gave a real-world example of how to create TimedTest for code that is about to be optimized or code that has a strict requirement to be optimized.

JUnitPerf works with existing JUnit tests. If you have performance criteria for a certain piece of code, then create a JUnitPerf test to show your code meets the criteria and continues to meet the criteria after you refactor the code.




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