From ed707f3ee780d6bb3cd588bedce87abb57dcc3dd Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Thu, 29 Mar 2018 17:20:25 +0200 Subject: SONAR-5182 Add input validation on quality gate conditions --- tests/src/test/java/util/ItUtils.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'tests/src/test/java/util/ItUtils.java') diff --git a/tests/src/test/java/util/ItUtils.java b/tests/src/test/java/util/ItUtils.java index a5c763180de..13f268a4697 100644 --- a/tests/src/test/java/util/ItUtils.java +++ b/tests/src/test/java/util/ItUtils.java @@ -85,7 +85,6 @@ import static com.sonar.orchestrator.container.Server.ADMIN_PASSWORD; import static java.lang.Double.parseDouble; import static java.util.Arrays.asList; import static java.util.Collections.singletonList; -import static java.util.Locale.ENGLISH; import static org.apache.commons.lang.RandomStringUtils.randomAlphabetic; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.fail; @@ -314,7 +313,7 @@ public class ItUtils { } /** - * @deprecated no more needed as already done by n by {@link Tester#after()} + * @deprecated no more needed as already done by {@link Tester#after()} */ @Deprecated public static void resetEmailSettings(Orchestrator orchestrator) { @@ -323,7 +322,7 @@ public class ItUtils { } /** - * @deprecated no more needed as already done by n by {@link Tester#after()} + * @deprecated no more needed as already done by {@link Tester#after()} */ @Deprecated public static void resetPeriod(Orchestrator orchestrator) { @@ -432,10 +431,6 @@ public class ItUtils { .build().call(httpRequest); } - public static String newOrganizationKey() { - return randomAlphabetic(32).toLowerCase(ENGLISH); - } - public static String newProjectKey() { return "key-" + randomAlphabetic(100); } @@ -499,11 +494,6 @@ public class ItUtils { return sdf.format(d); } - public static String formatDateTime(Date d) { - SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ"); - return sdf.format(d); - } - public static String extractCeTaskId(BuildResult buildResult) { List taskIds = extractCeTaskIds(buildResult); checkState(taskIds.size() == 1, "More than one task id retrieved from logs"); -- cgit v1.2.3