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

removing all ignored tests #514

Merged
merged 2 commits into from
Apr 23, 2014
Merged

removing all ignored tests #514

merged 2 commits into from
Apr 23, 2014

Conversation

Turini
Copy link
Member

@Turini Turini commented Apr 17, 2014

No description provided.

@Turini Turini added this to the 4.0.0-RCF milestone Apr 17, 2014
@Turini Turini self-assigned this Apr 17, 2014
@garcia-jj
Copy link
Member

I agree. But I think that it's best to wait two or more votes from other
commiters.

🔥

Connected with Motocast™

@@ -224,19 +223,4 @@ public void setY(Integer y) {
this.y = y;
}
}

@Test
@Ignore("Should it work someday?")
Copy link
Member

Choose a reason for hiding this comment

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

Why this test fails? I guess it should work.

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'm really not sure about that, but I think it not works. The test results:

java.lang.IllegalArgumentException: Parameters paths are invalid: [abc.y] for method public void br.com.caelum.vraptor.http.route.RouteBuilderTest$Generic.gee(java.lang.Object)
at br.com.caelum.vraptor.http.route.DefaultTypeFinder.getParameterTypes(DefaultTypeFinder.java:66)

the method gee receives T as argument. Should it work?

Copy link
Member

Choose a reason for hiding this comment

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

If Specific.class binds T to Bolinha, why not?

Copy link
Member Author

Choose a reason for hiding this comment

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

So do you have any idea why this test don't work?
Take a look on DefaultTypeFinder.getParameterTypes(...),
it is trying to call method getY on Object for this test case...
So or the test is wrong or it really dont should to work :)

Copy link
Member

Choose a reason for hiding this comment

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

No idea. What is the failure when you remove the @Ignore?

Copy link
Member Author

Choose a reason for hiding this comment

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

here is the full stack trace :) https://gist.github.com/Turini/11199258

Copy link
Member

Choose a reason for hiding this comment

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

Caused by: java.lang.NullPointerException
    at br.com.caelum.vraptor.http.route.DefaultTypeFinder.getParameterTypes(DefaultTypeFinder.java:64)

easy fix ;)

Copy link
Member Author

Choose a reason for hiding this comment

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

not so easy... see the follow line (the NPE line):

type = new Mirror().on(type).reflect()
    .method("get" + upperFirst(item)).withoutArgs().getReturnType();

as I said, it's trying to call getY() from Object here =P

Copy link
Member

Choose a reason for hiding this comment

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

I don't have time to do this now, but I'd at least leave this test ignored.

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 here f5615b2

Turini added a commit that referenced this pull request Apr 23, 2014
@Turini Turini merged commit c0ad00a into master Apr 23, 2014
@Turini Turini deleted the removingIgnoredTests branch April 23, 2014 12:21
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.

3 participants