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

Closes caelum/vraptor#581. Only instantiate objects with same type #355

Merged
merged 3 commits into from
Feb 5, 2014

Conversation

garcia-jj
Copy link
Member

@garcia-jj
Copy link
Member Author

Affects vraptor3. If this pull request will accepted, we need to replicate the changes.

List<Message> errors = new ArrayList<Message>();
Object[] out = provider.getParametersFor(method, errors);

assertThat(out[0], not(is(result)));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is(not(result))?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, because Result is a vraptor object that we can't get. We want to get only parameters, not vraptor objects. This is the propose of the issue.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is(not(result)) reads better than not(is(result)) ;) 🍂

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done by a7990e8

@lucascs
Copy link
Member

lucascs commented Feb 4, 2014

🚌

OtherResource.class.getDeclaredMethod("logic", String.class));

List<Message> errors = new ArrayList<Message>();
Object[] out = provider.getParametersFor(method, errors);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed the test because I think that we need to check if IOGI got the right parameter too. @lucascs right?

garcia-jj added a commit that referenced this pull request Feb 5, 2014
Closes caelum/vraptor#581. Only instantiate objects with same type
@garcia-jj garcia-jj merged commit 95f46e8 into master Feb 5, 2014
@garcia-jj garcia-jj deleted the ot-iogiwithsametype branch February 5, 2014 22:25
@garcia-jj
Copy link
Member Author

@lucascs Thank you for review my code.

This pull request was closed.
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.

Erro de passagem de parâmetro para método
3 participants