Create error response for concurrent modifications

This commit is contained in:
René Pfeuffer
2018-10-25 13:48:00 +02:00
parent bda5b41271
commit d185743ef0
10 changed files with 57 additions and 17 deletions

View File

@@ -97,7 +97,7 @@ public abstract class UserManagerTestBase extends ManagerTestBase<User> {
}
@Test(expected = NotFoundException.class)
public void testDeleteNotFound() throws Exception {
public void testDeleteNotFound() {
manager.delete(UserTestData.createDent());
}
@@ -181,7 +181,7 @@ public abstract class UserManagerTestBase extends ManagerTestBase<User> {
}
@Test
public void testModify() throws AlreadyExistsException, NotFoundException, ConcurrentModificationException {
public void testModify() throws AlreadyExistsException {
User zaphod = UserTestData.createZaphod();
manager.create(zaphod);
@@ -238,7 +238,7 @@ public abstract class UserManagerTestBase extends ManagerTestBase<User> {
}
@Test
public void testRefresh() throws AlreadyExistsException, NotFoundException {
public void testRefresh() throws AlreadyExistsException {
User zaphod = UserTestData.createZaphod();
manager.create(zaphod);
@@ -299,7 +299,7 @@ public abstract class UserManagerTestBase extends ManagerTestBase<User> {
return user;
}
private void modifyAndDeleteUser(User user) throws IOException, NotFoundException, ConcurrentModificationException {
private void modifyAndDeleteUser(User user) {
String name = user.getName();
String nd = name.concat(" new displayname");