Merged 5.2.N (5.2.1) to HEAD (5.2)

130918 jvonka: REPO-1027: V1 REST API - minor: tweak TestSiteMembers
   - to make it repeatable (TODO further splitting/refactoring)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132206 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-11-03 13:29:42 +00:00
parent ac42e10d6a
commit 491b6f2f21
2 changed files with 26 additions and 20 deletions

View File

@@ -1400,8 +1400,11 @@ public class RepoService
public TestPerson createUser()
{
String username = "user" + System.currentTimeMillis();
PersonInfo personInfo = new PersonInfo("FirstName", "LastName", username, "password", null, "skype", "location",
long timeMillis = System.currentTimeMillis();
String firstname = "first" + timeMillis;
String lastname = "last" + timeMillis;
String username = "user" + timeMillis;
PersonInfo personInfo = new PersonInfo(firstname, lastname, username, "password", null, "skype", "location",
"telephone", "mob", "instant", "google");
TestPerson person = createUser(personInfo);
return person;