Skip to content

Commit

Permalink
ALFREDAPI-562: Replace @BeforeClass by @before
Browse files Browse the repository at this point in the history
  • Loading branch information
WimCrols committed Dec 10, 2024
1 parent cef7a9d commit 79c864c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public void setup() {
FileInfo documentForbidden = createTestNode(folderForbidden.getNodeRef(), "ForbiddenDocument");
nodeForbidden = documentForbidden.getNodeRef();
alfNodeService.setProperty(nodeForbidden, PROP_QNAME_VERSION_LABEL, PROPERTY_VALUE);

} catch (FileExistsException e) {
logger.warn("Test folder already created. Skipping (" + e.getMessage() + ")");
}
Expand All @@ -102,6 +103,7 @@ public void setup() {
FileInfo documentAllowed = createTestNode(folderAllowed.getNodeRef(), "AllowedDocument");
nodeAllowed = documentAllowed.getNodeRef();
alfNodeService.setProperty(nodeAllowed, PROP_QNAME_VERSION_LABEL, PROPERTY_VALUE);

} catch (FileExistsException e) {
logger.warn("Test folder already created. Skipping (" + e.getMessage() + ")");
}
Expand All @@ -110,6 +112,7 @@ public void setup() {
@After
public void teardown() {
AuthenticationUtil.setAdminUserAsFullyAuthenticatedUser();
alfPersonService.deletePerson(USERNAME_NORIGHTS_JOS);
cleanUp();
}

Expand Down

0 comments on commit 79c864c

Please sign in to comment.