mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 14:05:44 +01:00
added GroupNotFoundException and UserNotFoundException
This commit is contained in:
@@ -125,6 +125,19 @@ public abstract class UserManagerTestBase
|
||||
assertNull(manager.get("zaphod"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @throws IOException
|
||||
* @throws UserException
|
||||
*/
|
||||
@Test(expected = UserNotFoundException.class)
|
||||
public void testDeleteNotFound() throws UserException, IOException
|
||||
{
|
||||
manager.delete(UserTestData.createDent());
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
@@ -253,9 +266,7 @@ public abstract class UserManagerTestBase
|
||||
@Test(expected = UserException.class)
|
||||
public void testModifyNotExisting() throws UserException, IOException
|
||||
{
|
||||
User zaphod = UserTestData.createZaphod();
|
||||
|
||||
manager.modify(zaphod);
|
||||
manager.modify(UserTestData.createZaphod());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -324,6 +335,19 @@ public abstract class UserManagerTestBase
|
||||
assertEquals(zaphod.getDisplayName(), "Zaphod Beeblebrox");
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @throws IOException
|
||||
* @throws UserException
|
||||
*/
|
||||
@Test(expected = UserNotFoundException.class)
|
||||
public void testRefreshNotFound() throws UserException, IOException
|
||||
{
|
||||
manager.refresh(UserTestData.createDent());
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user