Skip to content

Commit bdcc0da

Browse files
committed
working on more javadoc style tests
1 parent 5e300aa commit bdcc0da

File tree

3 files changed

+56
-57
lines changed

3 files changed

+56
-57
lines changed

checkstyle.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
<property name="checkEmptyJavadoc" value="false"/>
139139
<property name="checkHtml" value="true"/>
140140
</module>
141+
<module name="InvalidJavadocPosition"/>
141142

142143
<!-- Checks for Naming Conventions. -->
143144
<!-- See http://checkstyle.sf.net/config_naming.html -->

src/test/java/org/htmlunit/WebTestCase.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ public abstract class WebTestCase {
7979
@Rule
8080
public final RetryRule retryRule_ = new RetryRule(4);
8181

82-
83-
84-
/** Logging support. */
82+
// /** Logging support. */
8583
// private static final Log LOG = LogFactory.getLog(WebTestCase.class);
8684

8785
/** save the environment */

src/test/java/org/htmlunit/junit/annotation/AnnotationUtilsTest.java

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -26,206 +26,206 @@
2626
*/
2727
public class AnnotationUtilsTest {
2828

29+
/**
30+
* @throws Exception if something goes wrong
31+
*/
2932
@Test
3033
@Alerts(DEFAULT = "default",
3134
CHROME = "chrome",
3235
EDGE = "edge",
3336
FF = "ff",
3437
FF_ESR = "ff esr")
35-
/**
36-
* @throws Exception if something goes wrong
37-
*/
3838
public void obsoleteDefaultBecauseAllBrowserExpectationsDefinedIndividually() throws Exception {
3939
testFail("Obsolete DEFAULT because all browser expectations defined individually",
4040
"obsoleteDefaultBecauseAllBrowserExpectationsDefinedIndividually");
4141
}
4242

43-
@Test
44-
@Alerts(DEFAULT = "redundant",
45-
CHROME = "redundant")
4643
/**
4744
* @throws Exception if something goes wrong
4845
*/
46+
@Test
47+
@Alerts(DEFAULT = "redundant",
48+
CHROME = "redundant")
4949
public void redundantAlertChrome() throws Exception {
5050
testFail("Redundant @Alerts for Chrome in AnnotationUtilsTest.redundantAlertChrome()",
5151
"redundantAlertChrome");
5252
}
5353

54-
@Test
55-
@Alerts(DEFAULT = "redundant",
56-
EDGE = "redundant")
5754
/**
5855
* @throws Exception if something goes wrong
5956
*/
57+
@Test
58+
@Alerts(DEFAULT = "redundant",
59+
EDGE = "redundant")
6060
public void redundantAlertEdge() throws Exception {
6161
testFail("Redundant @Alerts for Edge in AnnotationUtilsTest.redundantAlertEdge()",
6262
"redundantAlertEdge");
6363
}
6464

65-
@Test
66-
@Alerts(DEFAULT = "redundant",
67-
FF = "redundant")
6865
/**
6966
* @throws Exception if something goes wrong
7067
*/
68+
@Test
69+
@Alerts(DEFAULT = "redundant",
70+
FF = "redundant")
7171
public void redundantAlertFf() throws Exception {
7272
testFail("Redundant @Alerts for FF in AnnotationUtilsTest.redundantAlertFf()",
7373
"redundantAlertFf");
7474
}
7575

76-
@Test
77-
@Alerts(DEFAULT = "redundant",
78-
FF_ESR = "redundant")
7976
/**
8077
* @throws Exception if something goes wrong
8178
*/
79+
@Test
80+
@Alerts(DEFAULT = "redundant",
81+
FF_ESR = "redundant")
8282
public void redundantAlertFfEsr() throws Exception {
8383
testFail("Redundant @Alerts for FF-ESR in AnnotationUtilsTest.redundantAlertFfEsr()",
8484
"redundantAlertFfEsr");
8585
}
8686

87-
@Test
88-
@Alerts("redundant")
89-
@HtmlUnitNYI("redundant")
9087
/**
9188
* @throws Exception if something goes wrong
9289
*/
90+
@Test
91+
@Alerts("redundant")
92+
@HtmlUnitNYI("redundant")
9393
public void redundantHtmlUnitNYI() throws Exception {
9494
testFail("Redundant @HtmlUnitNYI for DEFAULT in AnnotationUtilsTest.redundantHtmlUnitNYI()",
9595
"redundantHtmlUnitNYI");
9696
}
9797

98-
@Test
99-
@Alerts("redundant")
100-
@HtmlUnitNYI(CHROME = "redundant")
10198
/**
10299
* @throws Exception if something goes wrong
103100
*/
101+
@Test
102+
@Alerts("redundant")
103+
@HtmlUnitNYI(CHROME = "redundant")
104104
public void redundantHtmlUnitNYIChrome() throws Exception {
105105
testFail("Redundant @HtmlUnitNYI for Chrome in AnnotationUtilsTest.redundantHtmlUnitNYIChrome()",
106106
"redundantHtmlUnitNYIChrome");
107107
}
108108

109-
@Test
110-
@Alerts("redundant")
111-
@HtmlUnitNYI(EDGE = "redundant")
112109
/**
113110
* @throws Exception if something goes wrong
114111
*/
112+
@Test
113+
@Alerts("redundant")
114+
@HtmlUnitNYI(EDGE = "redundant")
115115
public void redundantHtmlUnitNYIEdge() throws Exception {
116116
testFail("Redundant @HtmlUnitNYI for Edge in AnnotationUtilsTest.redundantHtmlUnitNYIEdge()",
117117
"redundantHtmlUnitNYIEdge");
118118
}
119119

120-
@Test
121-
@Alerts("redundant")
122-
@HtmlUnitNYI(FF = "redundant")
123120
/**
124121
* @throws Exception if something goes wrong
125122
*/
123+
@Test
124+
@Alerts("redundant")
125+
@HtmlUnitNYI(FF = "redundant")
126126
public void redundantHtmlUnitNYIFf() throws Exception {
127127
testFail("Redundant @HtmlUnitNYI for FF in AnnotationUtilsTest.redundantHtmlUnitNYIFf()",
128128
"redundantHtmlUnitNYIFf");
129129
}
130130

131-
@Test
132-
@Alerts("redundant")
133-
@HtmlUnitNYI(FF_ESR = "redundant")
134131
/**
135132
* @throws Exception if something goes wrong
136133
*/
134+
@Test
135+
@Alerts("redundant")
136+
@HtmlUnitNYI(FF_ESR = "redundant")
137137
public void redundantHtmlUnitNYIFfEsr() throws Exception {
138138
testFail("Redundant @HtmlUnitNYI for FF-ESR in AnnotationUtilsTest.redundantHtmlUnitNYIFfEsr()",
139139
"redundantHtmlUnitNYIFfEsr");
140140
}
141141

142+
/**
143+
* @throws Exception if something goes wrong
144+
*/
142145
@Test
143146
@Alerts(DEFAULT = "",
144147
CHROME = "redundant")
145148
@HtmlUnitNYI(CHROME = "redundant")
146-
/**
147-
* @throws Exception if something goes wrong
148-
*/
149149
public void redundantChromeHtmlUnitNYIChrome() throws Exception {
150150
testFail("Redundant @HtmlUnitNYI for Chrome in AnnotationUtilsTest.redundantChromeHtmlUnitNYIChrome()",
151151
"redundantChromeHtmlUnitNYIChrome");
152152
}
153153

154+
/**
155+
* @throws Exception if something goes wrong
156+
*/
154157
@Test
155158
@Alerts(DEFAULT = "",
156159
EDGE = "redundant")
157160
@HtmlUnitNYI(EDGE = "redundant")
158-
/**
159-
* @throws Exception if something goes wrong
160-
*/
161161
public void redundantEdgeHtmlUnitNYIEdge() throws Exception {
162162
testFail("Redundant @HtmlUnitNYI for Edge in AnnotationUtilsTest.redundantEdgeHtmlUnitNYIEdge()",
163163
"redundantEdgeHtmlUnitNYIEdge");
164164
}
165165

166+
/**
167+
* @throws Exception if something goes wrong
168+
*/
166169
@Test
167170
@Alerts(DEFAULT = "",
168171
FF = "redundant")
169172
@HtmlUnitNYI(FF = "redundant")
170-
/**
171-
* @throws Exception if something goes wrong
172-
*/
173173
public void redundantFfHtmlUnitNYIFf() throws Exception {
174174
testFail("Redundant @HtmlUnitNYI for FF in AnnotationUtilsTest.redundantFfHtmlUnitNYIFf()",
175175
"redundantFfHtmlUnitNYIFf");
176176
}
177177

178+
/**
179+
* @throws Exception if something goes wrong
180+
*/
178181
@Test
179182
@Alerts(DEFAULT = "",
180183
FF_ESR = "redundant")
181184
@HtmlUnitNYI(FF_ESR = "redundant")
182-
/**
183-
* @throws Exception if something goes wrong
184-
*/
185185
public void redundantFfEsrHtmlUnitNYIFfEsr() throws Exception {
186186
testFail("Redundant @HtmlUnitNYI for FF-ESR in AnnotationUtilsTest.redundantFfEsrHtmlUnitNYIFfEsr()",
187187
"redundantFfEsrHtmlUnitNYIFfEsr");
188188
}
189189

190-
@Test
191-
@Alerts(CHROME = "redundant")
192-
@HtmlUnitNYI(CHROME = "redundant")
193190
/**
194191
* @throws Exception if something goes wrong
195192
*/
193+
@Test
194+
@Alerts(CHROME = "redundant")
195+
@HtmlUnitNYI(CHROME = "redundant")
196196
public void redundantChrome2HtmlUnitNYIChrome() throws Exception {
197197
testFail("Redundant @HtmlUnitNYI for Chrome in AnnotationUtilsTest.redundantChrome2HtmlUnitNYIChrome()",
198198
"redundantChrome2HtmlUnitNYIChrome");
199199
}
200200

201-
@Test
202-
@Alerts(EDGE = "redundant")
203-
@HtmlUnitNYI(EDGE = "redundant")
204201
/**
205202
* @throws Exception if something goes wrong
206203
*/
204+
@Test
205+
@Alerts(EDGE = "redundant")
206+
@HtmlUnitNYI(EDGE = "redundant")
207207
public void redundantEdge2HtmlUnitNYIEdge() throws Exception {
208208
testFail("Redundant @HtmlUnitNYI for Edge in AnnotationUtilsTest.redundantEdge2HtmlUnitNYIEdge()",
209209
"redundantEdge2HtmlUnitNYIEdge");
210210
}
211211

212-
@Test
213-
@Alerts(FF = "redundant")
214-
@HtmlUnitNYI(FF = "redundant")
215212
/**
216213
* @throws Exception if something goes wrong
217214
*/
215+
@Test
216+
@Alerts(FF = "redundant")
217+
@HtmlUnitNYI(FF = "redundant")
218218
public void redundantFf2HtmlUnitNYIFf() throws Exception {
219219
testFail("Redundant @HtmlUnitNYI for FF in AnnotationUtilsTest.redundantFf2HtmlUnitNYIFf()",
220220
"redundantFf2HtmlUnitNYIFf");
221221
}
222222

223-
@Test
224-
@Alerts(FF_ESR = "redundant")
225-
@HtmlUnitNYI(FF_ESR = "redundant")
226223
/**
227224
* @throws Exception if something goes wrong
228225
*/
226+
@Test
227+
@Alerts(FF_ESR = "redundant")
228+
@HtmlUnitNYI(FF_ESR = "redundant")
229229
public void redundantFfEsr2HtmlUnitNYIFfEsr() throws Exception {
230230
testFail("Redundant @HtmlUnitNYI for FF-ESR in AnnotationUtilsTest.redundantFfEsr2HtmlUnitNYIFfEsr()",
231231
"redundantFfEsr2HtmlUnitNYIFfEsr");

0 commit comments

Comments
 (0)