-
Notifications
You must be signed in to change notification settings - Fork 211
enhance TkHtml test coverage and readability #1487
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
|
@sopronyr did I answer your question? check pls PR |
|
@yegor256 please, check the PR |
| () -> { | ||
| MatcherAssert.assertThat( | ||
| "Must reject null byte array body", | ||
| new RsPrint(new TkHtml(body.getBytes()).act(new RqFake())), |
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.
@eshabakhov what this indentation is for? Also, in all other tests. Looks wrong to me. I wonder how Qulice didn't catch this.
|
@yegor256 fixed, check please |
| * Test case for {@link TkHtml with empty body}. | ||
| * @since 0.10 | ||
| */ | ||
| final class TkHtmlEmptyTest { |
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.
@eshabakhov read this please: https://www.yegor256.com/2023/01/19/layout-of-tests.html
|
@yegor256 thanks for the article! Fixed, check please. Is it correct to check for null in tests like this? |
|
|
||
| @Test | ||
| void endsTextResponseBodyWithHtmlTag() throws Exception { | ||
| final String body = "<html><body>Hello comrade!/body></html>"; |
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 hmm, okay. Fixed, please check |
|
@rultor merge |
Pull request solves #1435