Skip to content

Commit

Permalink
Fix #1956: improve assertion of bean validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed Aug 26, 2024
1 parent 644d1d7 commit e403d18
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 e403d18

Please sign in to comment.