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/BRANCHES/DEV/5.2.N/root@130918 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2016-09-26 15:26:57 +00:00
parent 6e857ad3bf
commit 114ce8b02c
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;