Skip to content

Commit b55ae17

Browse files
Migrate tests to JUnit Jupiter
* Migrate annotations and imports * Migrate assertions * Remove public visibility for test classes and methods * Minor code cleanup
1 parent c1cf417 commit b55ae17

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

owasp-java-html-sanitizer/src/test/java/org/owasp/html/OptgroupBugTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package org.owasp.html;
22

3-
import org.junit.Test;
4-
import static org.junit.Assert.assertEquals;
3+
import org.junit.jupiter.api.Test;
54

6-
public class OptgroupBugTest {
5+
import static org.junit.jupiter.api.Assertions.assertEquals;
6+
7+
class OptgroupBugTest {
78

89
/**
910
* Test that optgroup elements inside select are not corrupted with extra select tags.
@@ -12,7 +13,7 @@ public class OptgroupBugTest {
1213
* After fix: <select><optgroup><option></option></optgroup></select>
1314
*/
1415
@Test
15-
public void testOptgroupInsideSelectDoesNotAddExtraSelectTags() {
16+
void testOptgroupInsideSelectDoesNotAddExtraSelectTags() {
1617
PolicyFactory factory = new HtmlPolicyBuilder()
1718
.allowElements("select", "optgroup", "option")
1819
.allowAttributes("label").globally()

0 commit comments

Comments
 (0)