-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support more return types for the @Parameters method. Fixes #700. #702
Support more return types for the @Parameters method. Fixes #700. #702
Conversation
@@ -281,15 +313,24 @@ public Parameterized(Class<?> klass) throws Throwable { | |||
return runners; | |||
} | |||
|
|||
private Runner createRunner(String pattern, int index, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you give this a slightly different name just to make absolutely sure we don't get odd overloading effects on later changes?
Nice. One quick request. |
@dsaff I renamed the method. |
@@ -281,15 +313,25 @@ public Parameterized(Class<?> klass) throws Throwable { | |||
return runners; | |||
} | |||
|
|||
private Runner createRunnerWithNotNormalizedParameters(String pattern, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting looks weird here now.
@dsaff Cleaned up formatting. |
@stefanbirkner, FYI, it's a little easier to track in a review if we wait until the end to squash extra commits. But looks good now. Can you resolve merge conflicts, and I'll pull? Thanks. |
…m#700. Support the return types Iterator<? extends Object>, Object[] and Object[][]. You don't have to wrap arrays with Iterables and single parameters with Object arrays.
I rebased to current master. @dsaff Thanks for the advice about squashing. |
Support more return types for the @parameters method. Fixes #700.
@stefanbirkner, many thanks! Would you mind adding a note at https://github.com/junit-team/junit/wiki/4.12-release-notes ? Thanks. |
Support the return types Iterator<? extends Object>, Object[] and Object[][]. You don't have to wrap arrays with Iterables and single parameters with Object arrays.