3
Pins

JUnit 4.0 Example

published 672 days, 15 hours, 16 minutes ago posted by jamesjames 674 days, 6 hours, 23 minutes ago
Friday, June 15, 2012 3:37:11 PM GMT Thursday, June 14, 2012 12:29:58 AM GMT

JUnit 4.0 introduces a completely different API to the older versions. JUnit 4.0 uses Java 5.0 annotations to describe tests instead of using inheritence. It introduces more flexible initialization and cleanup, timeouts, and parameterized test cases. This post describes the new features in JUnit 4.0, and in the end, I show a basic example that tests the java.util.Stack class.

category: JAVA | clicked: 6 | | source: www.javabeat.net | show counter code
tags: example, Junit


To post comments using your Facebook,Twitter, Gmail etc credentials in the Discus comments section. Or use your Javapins credentials at the end of the page.
To post your comment as a Javapins user please login or signup to Javapins database.