-
Notifications
You must be signed in to change notification settings - Fork 202
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
#485 Introduce AbstractHmBody matcher and implementations #785
Conversation
Job #785 is now in scope, role is |
Codecov Report
@@ Coverage Diff @@
## master #785 +/- ##
===========================================
+ Coverage 76.45% 76.55% +0.1%
- Complexity 934 953 +19
===========================================
Files 212 215 +3
Lines 4447 4505 +58
Branches 353 358 +5
===========================================
+ Hits 3400 3449 +49
- Misses 898 904 +6
- Partials 149 152 +3
Continue to review full report at Codecov.
|
I've checked coverage lines. Jacoco qualify constructors in Also there is |
I was able to fix coverage report. Looks OK now. @yegor256 don't you mind finding someone to review this PR? Thanks. |
@t-izbassar I'm not sure that this PR resolves bug-reporter issue fully, as I understand he wanted to provide hamcrest matchers as constructor parameters (not string or byte-array values), like: MatcherAssert.assertThat(
response,
new HmRsBody<>(Matchers.startsWith("<html"))
); @carlosmiranda could you please take a look? |
@g4s8 I understand that. However body returns an |
@g4s8 and how you think your example should work? I will read bytes from inputStream then I need to transform that bytes to a string and only then I can apply given matcher. That’s seems to me will lead to a wrong design with having to check if matcher is for certain type. However I can think of something if @carlosmiranda will suggests other possibilities. |
Hey @g4s8 what do you think? This puzzle with splitting for two different types of Bodies should be enough, so that we will have Or how we can convert string matcher to bytes matches? I think this will add complexity to the solution. |
@t-izbassar yes, I think it would be better. You can update a |
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.
@yegor256 I accept
@yegor256 ping |
1 similar comment
@yegor256 ping |
@rultor merge |
The job #785 is now out of scope |
PR for #485