From b773307a0b19cff31ed2de58cf9caff4df9f688f Mon Sep 17 00:00:00 2001 From: Damian Ujma <92095156+damianujma@users.noreply.github.com> Date: Thu, 12 Jan 2023 12:51:52 +0100 Subject: [PATCH] ACS-3841 Use AlphabeticalPriorityInterceptor from alfresco-tas-utility (#1671) --- .../AlphabeticalPriorityInterceptor.java | 52 ------------------- .../src/test/resources/testng.xml | 2 +- pom.xml | 2 +- 3 files changed, 2 insertions(+), 54 deletions(-) delete mode 100644 amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/utils/AlphabeticalPriorityInterceptor.java diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/utils/AlphabeticalPriorityInterceptor.java b/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/utils/AlphabeticalPriorityInterceptor.java deleted file mode 100644 index 662f7514a9..0000000000 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/utils/AlphabeticalPriorityInterceptor.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * #%L - * Alfresco Records Management Module - * %% - * Copyright (C) 2005 - 2023 Alfresco Software Limited - * %% - * This file is part of the Alfresco software. - * - - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - - * Alfresco is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - - * Alfresco is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - * #L% - */ -package org.alfresco.rest.rm.community.utils; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import org.testng.IMethodInstance; -import org.testng.IMethodInterceptor; -import org.testng.ITestContext; - -/** - * A method interceptor that sorts test classes alphabetically. - * - * @author Damian Ujma - */ -public class AlphabeticalPriorityInterceptor implements IMethodInterceptor -{ - @Override - public List intercept(List methods, - ITestContext context) - { - return methods.stream() - .sorted(Comparator.comparing(methodInstance -> methodInstance.getMethod().getTestClass().getName())) - .collect(Collectors.toList()); - } -} \ No newline at end of file diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/resources/testng.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/resources/testng.xml index b437f984ee..976d94ef45 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/resources/testng.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/resources/testng.xml @@ -2,7 +2,7 @@ - + diff --git a/pom.xml b/pom.xml index 17c4c04263..093253649b 100644 --- a/pom.xml +++ b/pom.xml @@ -120,7 +120,7 @@ 8.0.30 8 2.7.4 - 3.0.57 + 3.0.58 5.2.0 1.11 1.7