aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/util/ItUtils.java
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2018-03-29 17:20:25 +0200
committerSonarTech <sonartech@sonarsource.com>2018-04-06 20:21:51 +0200
commited707f3ee780d6bb3cd588bedce87abb57dcc3dd (patch)
tree7a2b30149cdcc72c0e4d38e27caefab613a9e11c /tests/src/test/java/util/ItUtils.java
parent16d38f24d578b80de03d46cdb3c6ba6c37760d06 (diff)
downloadsonarqube-ed707f3ee780d6bb3cd588bedce87abb57dcc3dd.tar.gz
sonarqube-ed707f3ee780d6bb3cd588bedce87abb57dcc3dd.zip
SONAR-5182 Add input validation on quality gate conditions
Diffstat (limited to 'tests/src/test/java/util/ItUtils.java')
-rw-r--r--tests/src/test/java/util/ItUtils.java14
1 files changed, 2 insertions, 12 deletions
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<String> taskIds = extractCeTaskIds(buildResult);
checkState(taskIds.size() == 1, "More than one task id retrieved from logs");