aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2018-02-12 10:44:44 +0100
committerStas Vilchik <stas.vilchik@sonarsource.com>2018-02-20 10:06:52 +0100
commit209c36aefa2c16b5b156b21604664ff32ef13a86 (patch)
tree42ab8ac9b571ba44af64d0020aab9a7e09a09bb3 /tests
parentfff2b9bcc5e0668dfc36a8a34000aac0ae9c10e7 (diff)
downloadsonarqube-209c36aefa2c16b5b156b21604664ff32ef13a86.tar.gz
sonarqube-209c36aefa2c16b5b156b21604664ff32ef13a86.zip
SONAR-10411 Do not persist name of provided project links
Diffstat (limited to 'tests')
-rw-r--r--tests/src/test/java/org/sonarqube/tests/project/ProjectLinksTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/src/test/java/org/sonarqube/tests/project/ProjectLinksTest.java b/tests/src/test/java/org/sonarqube/tests/project/ProjectLinksTest.java
index a2a63ee87c9..1cbb95dd0e0 100644
--- a/tests/src/test/java/org/sonarqube/tests/project/ProjectLinksTest.java
+++ b/tests/src/test/java/org/sonarqube/tests/project/ProjectLinksTest.java
@@ -50,7 +50,7 @@ public class ProjectLinksTest {
@ClassRule
public static RuleChain ruleChain = RuleChain.outerRule(orchestrator).around(tester);
- private long customLinkId;
+ private String customLinkId;
private String adminUser;
@BeforeClass
@@ -62,7 +62,7 @@ public class ProjectLinksTest {
@Before
public void prepare() {
- customLinkId = Long.parseLong(createCustomLink().getLink().getId());
+ customLinkId = createCustomLink().getLink().getId();
adminUser = tester.users().generateAdministratorOnDefaultOrganization().getLogin();
}
@@ -136,9 +136,9 @@ public class ProjectLinksTest {
.setUrl("http://example.org/custom"));
}
- private void deleteLink(long id) {
+ private void deleteLink(String id) {
try {
- tester.wsClient().projectLinks().delete(new DeleteRequest().setId("" + id));
+ tester.wsClient().projectLinks().delete(new DeleteRequest().setId(id));
} catch (Exception e) {
// fail silently
}