Overview
Test case for degenerate use of the REST security service user management CRUD methods.
Procedure 1: Testing add services
- Add user with null argument
- TEST: Exception
- Add user with incomplete user information (e.g. blank name or email)
- TEST: Should throw deserialization error
- Add user with duplicate user name
- TEST: Should throw DuplicateEntry exception
- Add user with already-existing hibernate id
- TEST: Should throw DuplicateEntry exception
Procedure 2: Testing get services
- Get user by id with null id
- TEST: Should throw null
- Get user by name with null name
- TEST: Should return null
- Get user with invalid name (does not exist in database)
- TEST: Should return null
Procedure 3: Testing update services
- Update user with null argument
- TEST: Should throw exception
- Update user with null hibernate id
- TEST: Should throw exception
- Update user with incomplete user information
- TEST: Should throw deserialization error
Procedure 4: Testing delete services
- Delete user with null id
- TEST: Should throw exception
- Delete user with invalid hibernate id (does not exist)
- TEST: Should throw exception
- Delete user with valid id but used by a project
- TEST: Should throw ForeignConstraint exception
Expected Runtime
- ???
Notes
- n/a