JaVa
   

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.


JaVa
   
Comments