Commit 653b397c authored by Piotr Gawron's avatar Piotr Gawron
Browse files

fix unit tests after constarints for db added

parent f3d62373
Pipeline #11982 passed with stage
in 11 minutes and 32 seconds
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment