TAS-3188 fixed 2 tests

This commit is contained in:
Cristina Axinte
2017-02-06 13:51:09 +02:00
parent 91d5332074
commit c19c22fe39
@@ -19,6 +19,7 @@ import org.alfresco.utility.testrail.annotation.TestRail;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
/**
@@ -42,7 +43,12 @@ public class GetTaskFullTests extends RestTest
userModel = dataUser.createRandomTestUser();
siteModel = dataSite.usingUser(userModel).createPublicRandomSite();
fileModel = dataContent.usingSite(siteModel).createContent(DocumentType.TEXT_PLAIN);
assigneeUser = dataUser.createRandomTestUser();
assigneeUser = dataUser.createRandomTestUser();
}
@BeforeMethod(alwaysRun=true)
public void createTask() throws Exception
{
taskModel = dataWorkflow.usingUser(userModel).usingSite(siteModel).usingResource(fileModel).createNewTaskAndAssignTo(assigneeUser);
}