Skip to content
Snippets Groups Projects
Commit d27eb97c authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Fixed some more service tests

parent 8918cce5
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!499Spring config update
......@@ -39,7 +39,7 @@ public class LdapServiceTest extends ServiceTestFunctions {
configurationService.setConfigurationValue(ConfigurationElementType.LDAP_OBJECT_CLASS, "person");
configurationService.setConfigurationValue(ConfigurationElementType.LDAP_FILTER, "memberof=cn=gitlab,cn=groups,cn=accounts,dc=uni,dc=lu");
ldapService = Mockito.spy(LdapService.class);
ldapService = Mockito.spy(new LdapService(null));
ldapService.setConfigurationService(configurationService);
Mockito.when(ldapService.getConnection()).thenAnswer(new Answer<LDAPConnection>() {
......
......@@ -89,7 +89,7 @@ public class UserServiceTest extends ServiceTestFunctions {
configurationService.setConfigurationValue(ConfigurationElementType.LDAP_FILTER,
"memberof=cn=gitlab,cn=groups,cn=accounts,dc=uni,dc=lu");
LdapService ldapService = Mockito.spy(LdapService.class);
LdapService ldapService = Mockito.spy(new LdapService(null));
ldapService.setConfigurationService(configurationService);
Mockito.when(ldapService.getConnection()).thenAnswer(new Answer<LDAPConnection>() {
......
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