Skip to content

Commit

Permalink
Merge pull request #1960 from jakartaee/issue_1956_fix_issue5171IT
Browse files Browse the repository at this point in the history
Fix #1956: improve assertion of Jakarta Validation error
  • Loading branch information
arjantijms authored Aug 29, 2024
2 parents 644d1d7 + e403d18 commit a4c85ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public void test() throws Exception {
page = page.getElementById("form:submit").click();
String simpleInputMessage = page.getElementById("form:simpleInputMessage").asNormalizedText();
String compositeInputMessage = page.getElementById("form:compositeInputMessage").asNormalizedText();
assertEquals("simple input must trigger bean validation and show message", "must not be empty", simpleInputMessage);
assertEquals("composite input must trigger bean validation and show message", "must not be empty", compositeInputMessage);
assertTrue("simple input must trigger bean validation and show message", simpleInputMessage.endsWith("must not be empty"));
assertTrue("composite input must trigger bean validation and show message", compositeInputMessage.endsWith("must not be empty"));

HtmlTextInput simpleInput = (HtmlTextInput) page.getElementById("form:simpleInput");
HtmlTextInput compositeInput = (HtmlTextInput) page.getElementById("form:composite:input");
Expand Down

0 comments on commit a4c85ef

Please sign in to comment.