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

VarargsParameterResolver should only support varargs as the last parameter, not an array #30

Merged
merged 1 commit into from
Mar 20, 2016

Conversation

theangrydev
Copy link
Contributor

The previous behaviour was causing the VarargsParameterResolver to resolve the @Row("example") for a test method like public void test(String[] argument) as:
new Object[]{new String{"example"}}

when I need it to resolve as:
new Object[]{"example"}

for a ParameterResolver plugin for yatspec I am working on that will delegate to VarargsParameterResolver to deal with varargs and add some additional functionality on top of that.

…meter, not an array.

The previous behaviour was causing the VarargsParameterResolver to resolve the @Row("example") for a test method like public void test(String[] argument) as:
 new Object[]{new String{"example"}}

 when I need it to resolve as:
 new Object[]{"example"}

 for a ParameterResolver plugin for yatspec I am working on that will delegate to VarargsParameterResolver to deal with varargs and add some additional functionality on top of that.
danielbodart added a commit that referenced this pull request Mar 20, 2016
VarargsParameterResolver should only support varargs as the last parameter, not an array
@danielbodart danielbodart merged commit 7f13c3f into bodar:master Mar 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants