]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4898 fix sonar-application-test
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 24 Jul 2014 20:26:03 +0000 (22:26 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 24 Jul 2014 20:26:03 +0000 (22:26 +0200)
server/sonar-search/pom.xml
sonar-application-test/pom.xml
sonar-application-test/src/test/java/ForkTest.java

index 60eaffbdebdc556baf2e4a3bc2383609c6dc1d2b..4d471e4251f91c16c2e56c1a82bcf8b12b47b9df 100644 (file)
@@ -19,7 +19,7 @@
     <dependency>
       <groupId>org.codehaus.sonar</groupId>
       <artifactId>sonar-process</artifactId>
-      <version>${pom.version}</version>
+      <version>${project.version}</version>
     </dependency>
     <dependency>
       <groupId>org.elasticsearch</groupId>
index 8ca5538c8ee9b4e40603f204963196bc1673394c..56adeed447aab433e5000217db1f6e340f645e75 100644 (file)
@@ -4,13 +4,13 @@
   <modelVersion>4.0.0</modelVersion>
 
   <parent>
-    <groupId>com.sonarsource.it.sonar</groupId>
-    <artifactId>it-sonar</artifactId>
-    <version>1.0-SNAPSHOT</version>
+    <groupId>org.codehaus.sonar</groupId>
+    <artifactId>sonar</artifactId>
+    <version>4.5-SNAPSHOT</version>
   </parent>
 
-  <artifactId>tests</artifactId>
-  <name>Sonar :: Integration Tests :: Tests</name>
+  <artifactId>sonar-application-tests</artifactId>
+  <name>Sonar :: Application :: Tests</name>
 
   <properties>
     <sonar.buildVersion>4.5-SNAPSHOT</sonar.buildVersion>
       <groupId>org.codehaus.sonar</groupId>
       <artifactId>sonar-ws-client</artifactId>
       <version>${sonar.buildVersion}</version>
+      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>com.sonarsource.orchestrator</groupId>
       <artifactId>sonar-orchestrator</artifactId>
       <version>2.15-SNAPSHOT</version>
+      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.10</version>
+      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.easytesting</groupId>
       <artifactId>fest-assert</artifactId>
-      <version>1.4</version>
-    </dependency>
-    <dependency>
-      <groupId>org.hamcrest</groupId>
-      <artifactId>hamcrest-all</artifactId>
-      <version>1.1</version>
-    </dependency>
-    <dependency>
-      <groupId>com.googlecode.json-simple</groupId>
-      <artifactId>json-simple</artifactId>
-      <version>1.1</version>
-    </dependency>
-    <dependency>
-      <groupId>org.skyscreamer</groupId>
-      <artifactId>jsonassert</artifactId>
-      <version>1.2.0</version>
+      <scope>test</scope>
     </dependency>
   </dependencies>
 
index 3352644c42ce0db7bebe4df679762439bd60b149..7482a745240265f8e35f36430236c48f6e6579f3 100644 (file)
@@ -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();