-
Notifications
You must be signed in to change notification settings - Fork 31
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
Tests in module arquillian-warp-api are never run #229
Comments
@rhusar Do you mean those two? Do you have any idea what to do about them? I browsed the history, and the initial commit from 2012 still contained So I have no idea what this piece of code should actually do and why parts of the class were removed ;-). |
Yes, those in API module. I think these were meant to be just mocks, just to avoid accidentally breaking the API contract, but for some reason that was dropped and never restored. But those are compiled, so basically, little to lose here anyway,... |
Your explanation sounds reasonable ;-). So, what to do about them and this issue? |
I suppose just make them @ Test -s again and use mocking. |
OK, I will take a look the next few days. But I will have much more questions on the way ;-) |
@rhusar Help ;-)... This issue turns out to become a Mockito tutorial... I started with the first method in
..and tried to split it to pieces and mock it:
Should I mock "HttpFilters.request", too (and all the chain down)?
|
It looks like these are only meant to be 'compiled' but never run but the execution was never disabled in maven.
These tests would require the impl to be available, so they need to be reworked to Mocks.
FYI @WolfgangHG - this one is quite funny :-)
The text was updated successfully, but these errors were encountered: