From: Simon Brandhof Date: Thu, 17 Aug 2017 12:30:43 +0000 (+0200) Subject: Revert "SONAR-7493 add integration test on max length of db column issues.message" X-Git-Tag: 6.6-RC1~590 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b7180e84a86cc6aef209f24ddba9da06aeb46010;p=sonarqube.git Revert "SONAR-7493 add integration test on max length of db column issues.message" This reverts commit 4f79e3f566e90290434c860c828508e34b46b05f. ... because return from holidays is hard --- diff --git a/tests/src/test/java/org/sonarqube/tests/issue/IssueCreationTest.java b/tests/src/test/java/org/sonarqube/tests/issue/IssueCreationTest.java index 81d2cd4a51b..b6afaf17304 100644 --- a/tests/src/test/java/org/sonarqube/tests/issue/IssueCreationTest.java +++ b/tests/src/test/java/org/sonarqube/tests/issue/IssueCreationTest.java @@ -19,7 +19,6 @@ */ package org.sonarqube.tests.issue; -import org.apache.commons.lang.StringUtils; import org.junit.Before; import org.junit.Test; import org.sonar.wsclient.issue.Issue; @@ -76,23 +75,4 @@ public class IssueCreationTest extends AbstractIssueTest { assertThat(issue.severity()).isEqualTo("BLOCKER"); } } - - /** - * Test the maximum size of DB column issues.message, even if UTF8 characters - * are 3-bytes long - * - * SONAR-7493 - */ - @Test - public void issue_message_should_support_4000_utf8_characters() { - ORCHESTRATOR.getServer().provisionProject(SAMPLE_PROJECT_KEY, SAMPLE_PROJECT_KEY); - ItUtils.restoreProfile(ORCHESTRATOR, getClass().getResource("/issue/IssueCreationTest/with-custom-message.xml")); - ORCHESTRATOR.getServer().associateProjectToQualityProfile(SAMPLE_PROJECT_KEY, "xoo", "with-custom-message"); - - String longMessage = StringUtils.repeat("を", 4_000); - runProjectAnalysis(ORCHESTRATOR, "shared/xoo-sample", "sonar.customMessage.message", longMessage); - - Issue issue = issueClient().find(IssueQuery.create()).list().get(0); - assertThat(issue.message()).isEqualTo(longMessage); - } }