Currently I am doing this
while (permissions.hasNext()) {
assertEquals(permissions.next().getRole(), "everybody");
}
This works fine, but is there a better way to do this ?
Asking this since Sonar is currently showing a violation, saying "Add at least one assertion to this test case." I believe it is not able to read the assert inside the loop. Is this a bug in Sonar?