From: SourceForge.net <no...@so...> - 2009-12-01 02:20:21
|
Feature Requests item #2222651, was opened at 2008-11-04 22:22 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=365278&aid=2222651&group_id=15278 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Henrik Kaipe (kaipe) Assigned to: Nobody/Anonymous (nobody) Summary: enum-classes for parameterized testing Initial Comment: The attached test-runner "EnumRunner" makes it possible to write parameterized tests as enum-classes. It is a very simple runner-implementation that delegates the test-execution of each single enum-constant to a slightly modified BlockJUnit4ClassRunner instance. I used to use the Parameterized-runner but some time ago I came up with the idea of using enum-classes instead and I this is the runner I developed. Some advantages compared to the Parameterized-runner are - Compile-time validation of constructor parameters (see javadoc example) - Elegant improvements to test-descriptions, thanks to the enum-constant names - The parameter declarations are much cleaner (No @Parameters-method needed) - Cleaner runner implementation since the runner does not need to create the test-instance ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 2009-12-01 02:20 Message: This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: David Saff (dsaff) Date: 2009-11-16 17:52 Message: This tracker is being shut down. Please move this item to http://github.com/KentBeck/junit/issues ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2008-11-09 04:17 Message: This doesn't allow dynamic creation of tests though... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=365278&aid=2222651&group_id=15278 |