This article was written almost a year ago.
Swan Htet Aung

Huge change in JUnit4: Generic, static imports (for asserts) and annotations availability thanks to Java5. Using annotations would provide you possibility to name your test methods nicer (they don’t need to start with “test”, they don’t need to extends TestCase anymore), instead of setUp and tearDown methods you can use @Before @After ,timeouts, exceptions can be defined in cleaner way. Besides there are new JUnit4 runners, tests look cleaner and shorter (thanks to annotations again). Some tests can be annotated as ignored if needed. From my point of view one of the biggest improvement is possibility to write parametrised tests (single test with various input data). Hope you find this useful and it helps you ;) Cheers

Like what you read? Give Zaphod Beeblebroks a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.