]> source.dussan.org Git - sonarqube.git/commit
Fix reliability of RemoveGroupActionTest
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 23 Mar 2017 22:51:30 +0000 (23:51 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 23 Mar 2017 22:51:30 +0000 (23:51 +0100)
commit222ef7454cad87468d2da86582567bda3af41ca8
treed7e1eb03187101d267ab936b8495268352791416
parentbc02e17e446f8b89220ef05322d3e212cc0c8f0c
Fix reliability of RemoveGroupActionTest

Sometimes the test "fail_when_group_id_does_not_exist" fails with error:
Expected test to throw (an instance of org.sonar.server.exceptions.NotFoundException and exception with message a string containing "No group with id '42'")
That occurs when other tests have created at least 42 groups, so that
the id sequence reached value 42.
server/sonar-server/src/test/java/org/sonar/server/permission/ws/RemoveGroupActionTest.java