From 5b57bb4e680efc7b792dfbd6ffe24038c8871cd5 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 24 Jul 2014 22:26:03 +0200 Subject: [PATCH] SONAR-4898 fix sonar-application-test --- server/sonar-search/pom.xml | 2 +- sonar-application-test/pom.xml | 31 ++++++------------- .../src/test/java/ForkTest.java | 19 ++++++++++-- 3 files changed, 27 insertions(+), 25 deletions(-) diff --git a/server/sonar-search/pom.xml b/server/sonar-search/pom.xml index 60eaffbdebd..4d471e4251f 100644 --- a/server/sonar-search/pom.xml +++ b/server/sonar-search/pom.xml @@ -19,7 +19,7 @@ org.codehaus.sonar sonar-process - ${pom.version} + ${project.version} org.elasticsearch diff --git a/sonar-application-test/pom.xml b/sonar-application-test/pom.xml index 8ca5538c8ee..56adeed447a 100644 --- a/sonar-application-test/pom.xml +++ b/sonar-application-test/pom.xml @@ -4,13 +4,13 @@ 4.0.0 - com.sonarsource.it.sonar - it-sonar - 1.0-SNAPSHOT + org.codehaus.sonar + sonar + 4.5-SNAPSHOT - tests - Sonar :: Integration Tests :: Tests + sonar-application-tests + Sonar :: Application :: Tests 4.5-SNAPSHOT @@ -24,36 +24,23 @@ org.codehaus.sonar sonar-ws-client ${sonar.buildVersion} + test com.sonarsource.orchestrator sonar-orchestrator 2.15-SNAPSHOT + test junit junit - 4.10 + test org.easytesting fest-assert - 1.4 - - - org.hamcrest - hamcrest-all - 1.1 - - - com.googlecode.json-simple - json-simple - 1.1 - - - org.skyscreamer - jsonassert - 1.2.0 + test diff --git a/sonar-application-test/src/test/java/ForkTest.java b/sonar-application-test/src/test/java/ForkTest.java index 3352644c42c..7482a745240 100644 --- a/sonar-application-test/src/test/java/ForkTest.java +++ b/sonar-application-test/src/test/java/ForkTest.java @@ -1,7 +1,21 @@ /* - * Copyright (C) 2009-2014 SonarSource SA - * All rights reserved + * SonarQube, open source software quality management tool. + * Copyright (C) 2008-2014 SonarSource * mailto:contact AT sonarsource DOT com + * + * SonarQube 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. + * + * SonarQube 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 this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import com.sonar.orchestrator.Orchestrator; import com.sonar.orchestrator.OrchestratorBuilder; @@ -35,6 +49,7 @@ public class ForkTest { @Test public void start_and_stop() { OrchestratorBuilder builder = Orchestrator.builderEnv(); + builder.setSonarVersion("4.5-SNAPSHOT"); builder.addPlugin(MavenLocation.create("com.sonarsource.xoo", "sonar-xoo-plugin", "1.0-SNAPSHOT")); orchestrator = builder.build(); orchestrator.start(); -- 2.39.5