Skip to content

Commit 09196f1

Browse files
committed
fix old leftover for @HtmlUnitNYI
1 parent bd15167 commit 09196f1

3 files changed

Lines changed: 0 additions & 31 deletions

File tree

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,6 @@ && isDefined(alerts.EDGE()),
6363

6464
final HtmlUnitNYI nyiAlerts = method.getAnnotation(HtmlUnitNYI.class);
6565
if (nyiAlerts != null) {
66-
if (isDefined(nyiAlerts.value())) {
67-
if (isDefined(alerts.CHROME())) {
68-
assertNotEquals("@HtmlUnitNYI",
69-
method, null, alerts.CHROME(), nyiAlerts.value());
70-
}
71-
else if (isDefined(alerts.DEFAULT())) {
72-
assertNotEquals("@HtmlUnitNYI",
73-
method, null, alerts.DEFAULT(), nyiAlerts.value());
74-
}
75-
else if (isDefined(alerts.value())) {
76-
assertNotEquals("@HtmlUnitNYI",
77-
method, null, alerts.value(), nyiAlerts.value());
78-
}
79-
}
80-
8166
if (isDefined(nyiAlerts.CHROME())) {
8267
if (isDefined(alerts.CHROME())) {
8368
assertNotEquals("@HtmlUnitNYI",

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,6 @@ public void redundantAlertFfEsr() throws Exception {
8585
"redundantAlertFfEsr");
8686
}
8787

88-
/**
89-
* @throws Exception if something goes wrong
90-
*/
91-
@Test
92-
@Alerts("redundant")
93-
@HtmlUnitNYI("redundant")
94-
public void redundantHtmlUnitNYI() throws Exception {
95-
testFail("Redundant @HtmlUnitNYI for DEFAULT in AnnotationUtilsTest.redundantHtmlUnitNYI()",
96-
"redundantHtmlUnitNYI");
97-
}
98-
9988
/**
10089
* @throws Exception if something goes wrong
10190
*/

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@
3333
@Retention(RetentionPolicy.RUNTIME)
3434
@Target(ElementType.METHOD)
3535
public @interface HtmlUnitNYI {
36-
/**
37-
* Alerts that is used for all browsers (if defined, the other values are ignored).
38-
* @return the alerts
39-
*/
40-
String[] value() default { EMPTY_DEFAULT };
4136

4237
/**
4338
* Alerts for latest Edge.

0 commit comments

Comments
 (0)