Wrap up
JUnit 4's radical departure from its original design doesn't mean the framework operates all that differently -- the power and simplicity of the original framework is intact. In fact, as you dig deeper into the framework, you should find that it hasn't sacrificed any of the core principles that ignited the developer testing revolution, although it has added some compelling new features.
In this tutorial, you walked through the process of getting to know JUnit 4, from test declaration to parametric testing. You discovered new features such as timed tests and exception testing and learned about changes to familiar ones like fixtures and logical grouping. You also saw how a test run looks in Eclipse and learned a simple workaround that allows you to run your tests in any version of Ant, even those prior to 1.7.
If there is any one thing I hope you learned from this tutorial, it's that annotations don't detract a thing from JUnit and they do add considerable ease of use. Give annotations a try: they'll have you jumping in and out of test writing before you know it!


