Skip to content

Commit

Permalink
Fix quality gate (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdiez authored Apr 22, 2024
1 parent 2e36717 commit d5d286a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class AriaRoleCheckTest {
public CheckMessagesVerifierRule checkMessagesVerifier = new CheckMessagesVerifierRule();

@Test
void html() throws Exception {
void html() {
HtmlSourceCode sourceCode = TestHelper.scan(
new File("src/test/resources/checks/AriaRoleCheck.html"),
new AriaRoleCheck());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AriaUnsupportedElementsCheckTest {
public CheckMessagesVerifierRule checkMessagesVerifier = new CheckMessagesVerifierRule();

@Test
void html() throws Exception {
void html() {
HtmlSourceCode sourceCode = TestHelper.scan(
new File("src/test/resources/checks/AriaUnsupportedElementsCheck.html"),
new AriaUnsupportedElementsCheck());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ElementWithRoleShouldHaveRequiredPropertiesCheckTest {
public CheckMessagesVerifierRule checkMessagesVerifier = new CheckMessagesVerifierRule();

@Test
void validHTML() throws Exception {
void validHTML() {
HtmlSourceCode sourceCode = TestHelper.scan(
new File("src/test/resources/checks/ElementWithRoleShouldHaveRequiredPropertiesCheckTest/valid.html"),
new ElementWithRoleShouldHaveRequiredPropertiesCheck()
Expand All @@ -41,7 +41,7 @@ void validHTML() throws Exception {
}

@Test
void invalidHTML() throws Exception {
void invalidHTML() {
HtmlSourceCode invalidSourceCode = TestHelper.scan(
new File("src/test/resources/checks/ElementWithRoleShouldHaveRequiredPropertiesCheckTest/invalid.html"),
new ElementWithRoleShouldHaveRequiredPropertiesCheck()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class NoRedundantRolesCheckTest {
public CheckMessagesVerifierRule checkMessagesVerifier = new CheckMessagesVerifierRule();

@Test
void html() throws Exception {
void html() {
HtmlSourceCode sourceCode = TestHelper.scan(
new File("src/test/resources/checks/NoRedundantRolesCheck.html"),
new NoRedundantRolesCheck());
Expand All @@ -44,7 +44,7 @@ void html() throws Exception {
}

@Test
void html_with_custom_property() throws Exception {
void html_with_custom_property() {
var check = new NoRedundantRolesCheck();
check.allowedRedundantRoles = "button=button,body=document";
HtmlSourceCode sourceCode = TestHelper.scan(
Expand All @@ -56,7 +56,7 @@ void html_with_custom_property() throws Exception {
}

@Test
void html_with_invalid_custom_property() throws Exception {
void html_with_invalid_custom_property() {
var check = new NoRedundantRolesCheck();
// the second pair is invalid, should be ignored
check.allowedRedundantRoles = "button=button,body=document=invalid";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class PreferTagOverRoleCheckTest {
public CheckMessagesVerifierRule checkMessagesVerifier = new CheckMessagesVerifierRule();

@Test
void html() throws Exception {
void html() {
HtmlSourceCode sourceCode = TestHelper.scan(
new File("src/test/resources/checks/PreferTagOverRoleCheck.html"),
new PreferTagOverRoleCheck());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class RoleSupportsAriaPropertyCheckTest {
public CheckMessagesVerifierRule checkMessagesVerifier = new CheckMessagesVerifierRule();

@Test
void html() throws Exception {
void html() {
HtmlSourceCode sourceCode = TestHelper.scan(
new File("src/test/resources/checks/RoleSupportsAriaPropertyCheck.html"),
new RoleSupportsAriaPropertyCheck());
Expand Down

0 comments on commit d5d286a

Please sign in to comment.