Skip to content

Commit

Permalink
add clarifying assert message
Browse files Browse the repository at this point in the history
  • Loading branch information
tltv committed Sep 16, 2024
1 parent 1ad4dd5 commit 0788738
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ public void testWithLoggedInUser_userHasRoles() throws IOException {
// Verify that getMenuItemsList returns the same data
List<AvailableViewInfo> menuItemsList = MenuRegistry
.collectMenuItemsList();
Assert.assertEquals(4, menuItemsList.size());
Assert.assertEquals(
"List of menu items has incorrect size. Excluded menu item like /login is not expected.",
4, menuItemsList.size());
assertOrder(menuItemsList,
new String[] { "", "/about", "/hilla", "/hilla/sub" });
}
Expand Down

0 comments on commit 0788738

Please sign in to comment.