Add test coverage to HtmlTag in Javadoc checks. #1308

This commit is contained in:
Michal Kordas 2015-07-11 00:52:27 +02:00 committed by Roman Ivanov
parent 12fc9a2b54
commit 787bf0582b
3 changed files with 10 additions and 3 deletions

View File

@ -1152,7 +1152,6 @@
<regex><pattern>.*.checks.javadoc.AbstractJavadocCheck</pattern><branchRate>90</branchRate><lineRate>93</lineRate></regex>
<regex><pattern>.*.checks.javadoc.AbstractJavadocCheck\$.*</pattern><branchRate>50</branchRate><lineRate>68</lineRate></regex>
<regex><pattern>.*.checks.javadoc.AtclauseOrderCheck</pattern><branchRate>88</branchRate><lineRate>88</lineRate></regex>
<regex><pattern>.*.checks.javadoc.HtmlTag</pattern><branchRate>75</branchRate><lineRate>90</lineRate></regex>
<regex><pattern>.*.checks.javadoc.JavadocMethodCheck</pattern><branchRate>90</branchRate><lineRate>96</lineRate></regex>
<regex><pattern>.*.checks.javadoc.JavadocPackageCheck</pattern><branchRate>80</branchRate><lineRate>95</lineRate></regex>
<regex><pattern>.*.checks.javadoc.JavadocParagraphCheck</pattern><branchRate>92</branchRate><lineRate>100</lineRate></regex>

View File

@ -57,8 +57,7 @@ class HtmlTag {
*/
HtmlTag(String id, int lineNo, int position, boolean closedTag,
boolean incomplete, String text) {
this.id = !"".equals(id) && id.charAt(0) == '/'
? id.substring(1) : id;
this.id = id;
this.lineNo = lineNo;
this.position = position;
this.text = text;

View File

@ -338,4 +338,13 @@ public class InputJavadocStyleCheck
public void method21() {
}
/**
* First sentence.
* <
* /a>
*/
void tagClosedInNextLine() {
}
}