Skip to content
Snippets Groups Projects
Commit fef9293d authored by srosse's avatar srosse
Browse files

OO-2077: fix unit tests MySQL / PostgreSQL

parent be6faf49
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,7 @@ import org.olat.core.commons.persistence.DBFactory; ...@@ -44,6 +44,7 @@ import org.olat.core.commons.persistence.DBFactory;
import org.olat.core.id.Identity; import org.olat.core.id.Identity;
import org.olat.core.id.User; import org.olat.core.id.User;
import org.olat.core.id.UserConstants; import org.olat.core.id.UserConstants;
import org.olat.core.util.StringHelper;
import org.olat.group.BusinessGroup; import org.olat.group.BusinessGroup;
import org.olat.group.BusinessGroupService; import org.olat.group.BusinessGroupService;
import org.olat.portfolio.manager.EPFrontendManager; import org.olat.portfolio.manager.EPFrontendManager;
...@@ -131,8 +132,10 @@ public class UserDeletionManagerTest extends OlatTestCase { ...@@ -131,8 +132,10 @@ public class UserDeletionManagerTest extends OlatTestCase {
Assert.assertFalse(isMember); Assert.assertFalse(isMember);
User deletedUser = deletedIdentity.getUser(); User deletedUser = deletedIdentity.getUser();
Assert.assertEquals("", deletedUser.getProperty(UserConstants.INSTITUTIONALNAME, null)); String institutionalName = deletedUser.getProperty(UserConstants.INSTITUTIONALNAME, null);
Assert.assertEquals("", deletedUser.getProperty(UserConstants.INSTITUTIONALUSERIDENTIFIER, null)); Assert.assertFalse(StringHelper.containsNonWhitespace(institutionalName));
String institutionalId = deletedUser.getProperty(UserConstants.INSTITUTIONALUSERIDENTIFIER, null);
Assert.assertFalse(StringHelper.containsNonWhitespace(institutionalId));
} }
@Test @Test
......
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