-
Notifications
You must be signed in to change notification settings - Fork 29
Added HTTP compression + tests #78
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
Conversation
@@ -19,14 +19,12 @@ class HttpTestForSimpleApi extends TestVerticle { | |||
</body> | |||
</html>.toString() | |||
|
|||
@Test |
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.
Why remove the annotations ?
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.
Somehow it doesn't work in Scala to have the @Test
methods in a superclass. The gradle test runner then always yields something like Cannot find method XXX
and fails the tests. The tests now are in the subclasses and use the super implementation.
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.
Strange... I would have expected it would "just work"
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.
You can try it yourself, maybe it's just my environment and we can figure out how to make this even more simpler. But I guess there's some issue with Scala + JUnit and this should work for everyone now. :)
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.
I think it's ok was just wondering
Am 05.11.2013 um 07:58 schrieb Joern Bernhardt notifications@github.com:
In src/test/scala/org/vertx/scala/tests/core/http/HttpTestForSimpleApi.scala:
@@ -19,14 +19,12 @@ class HttpTestForSimpleApi extends TestVerticle {
.toString()
- @test
You can try it yourself, maybe it's just my environment and we can figure out how to make this even more simpler. But I guess there's some issue with Scala + JUnit and this should work for everyone now. :)—
Reply to this email directly or view it on GitHub.
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.
@Narigo @normanmaurer WDYT of galderz@243592c ? Runs the test function with both clients, compressed and uncompressed.
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.
@galderz just skimmed over it - will we be able to see which one of the two failed? Do we get some kind of message "Now testing with/without compression" ? If not, can we at least make a logger.info() or something like that?
From the point of reusability I'd say let's use your version, definitely better to just have a single class for the tests.
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.
Agree here
Am 14.11.2013 um 17:50 schrieb Joern Bernhardt notifications@github.com:
In src/test/scala/org/vertx/scala/tests/core/http/HttpTestForSimpleApi.scala:
@@ -19,14 +19,12 @@ class HttpTestForSimpleApi extends TestVerticle {
.toString()From the point of reusability I'd say let's use your version, definitely better to just have a single class for the tests.
—
Reply to this email directly or view it on GitHub.
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.
@Narigo No, at the moment I don't think you'd be able to see which one failed, but I can improve on that for sure. I'll update asap.
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.
Please review and merge if okay.