From da9ba09611e37b32120c8bd3de1f06fbc71eea79 Mon Sep 17 00:00:00 2001 From: cagache Date: Tue, 29 Nov 2016 14:45:36 +0200 Subject: [PATCH] removed admin authentication part from each scenario because admin is already authenticated from beforeMethod --- e2e-test/java/org/alfresco/rest/tags/GetTagCoreTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e-test/java/org/alfresco/rest/tags/GetTagCoreTests.java b/e2e-test/java/org/alfresco/rest/tags/GetTagCoreTests.java index 73d4fed78..78ce19e79 100644 --- a/e2e-test/java/org/alfresco/rest/tags/GetTagCoreTests.java +++ b/e2e-test/java/org/alfresco/rest/tags/GetTagCoreTests.java @@ -34,7 +34,7 @@ public class GetTagCoreTests extends RestTest document = dataContent.usingSite(siteModel).usingUser(adminUserModel).createContent(DocumentType.TEXT_PLAIN); } - @BeforeMethod + @BeforeMethod(alwaysRun = true) public void setUp() throws Exception { tagValue = RandomData.getRandomName("tag"); restClient.authenticateUser(adminUserModel); @@ -54,7 +54,7 @@ public class GetTagCoreTests extends RestTest description = "Retrieve and validate the id of a tag added to a file") public void validateTagIdTest() throws JsonToModelConversionException, Exception { - RestTagModel returnedTag = restClient.authenticateUser(adminUserModel).withCoreAPI().getTag(tag); + RestTagModel returnedTag = restClient.withCoreAPI().getTag(tag); restClient.assertStatusCodeIs(HttpStatus.OK); returnedTag.assertThat().field("id").is(tag.getId()); } @@ -63,7 +63,7 @@ public class GetTagCoreTests extends RestTest description = "Retrieve and validate the name of a tag added to a file") public void validateTagNameTest() throws JsonToModelConversionException, Exception { - RestTagModel returnedTag = restClient.authenticateUser(adminUserModel).withCoreAPI().getTag(tag); + RestTagModel returnedTag = restClient.withCoreAPI().getTag(tag); restClient.assertStatusCodeIs(HttpStatus.OK); returnedTag.assertThat().field("tag").is(tagValue.toLowerCase()); }