Skip to content
Snippets Groups Projects
Commit 653b397c authored by Piotr Gawron's avatar Piotr Gawron
Browse files

fix unit tests after constarints for db added

parent f3d62373
No related branches found
No related tags found
1 merge request!849Resolve "user db change"
Pipeline #11982 passed
......@@ -63,6 +63,7 @@ public class UserRestImplTest extends RestTestFunctions {
try {
User user = new User();
user.setLogin(TEST_LOGIN);
user.setCryptedPassword("c");
userService.addUser(user);
userRestImpl.addUser(TEST_LOGIN, new LinkedMultiValueMap<>());
fail("Exception expected");
......@@ -77,6 +78,7 @@ public class UserRestImplTest extends RestTestFunctions {
public void testUpdatePreferences() throws Exception {
try {
User user = new User();
user.setCryptedPassword("");
user.setLogin(TEST_LOGIN);
userService.addUser(user);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment