Skip to content
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

Use Iterable for the parameters of Parameterized (fixes gh-104). #348

Merged
merged 1 commit into from
Dec 31, 2011

Conversation

stefanbirkner
Copy link
Contributor

The method annotated with @parameterized returns an Iterable<Object[]>
(was List<Object[]> before). The test fails with a meaningful exception
otherwise.

The method annotated with @parameterized returns an Iterable<Object[]>
(was List<Object[]> before). The test fails with a meaningful exception
otherwise.
@dsaff
Copy link
Member

dsaff commented Oct 21, 2011

This does have a subtle behavior change: before this change, the List<Object[]> of parameters can lazily return members (for example, reading them from disk only when asked for by the particular TestClassRunnerForParameters is ready to run).

After this change, all members of the parameters Iterable will be computed up front. I'm not sure if anyone ever used the lazy-loading option: if you understand what I'm getting at, would you have a chance to ping the list at junit@yahoogroups.com and see if everyone's OK with the change?

Thanks,

David

@stefanbirkner
Copy link
Contributor Author

There's no response from the mailing list. Maybe we could merge this pull request.

dsaff added a commit that referenced this pull request Dec 31, 2011
Use Iterable for the parameters of Parameterized (fixes gh-104).
@dsaff dsaff merged commit 45eaab7 into junit-team:master Dec 31, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants