summaryrefslogtreecommitdiffstats
path: root/src/test/java/org/sonar/runner/VersionTest.java
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-09-13 16:39:35 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2012-09-13 16:39:35 +0200
commitafcb0dc2b846309e6520dc00b918ce01e56221d5 (patch)
tree11f2457f9fdc3d8001f865341a67134f51d3d8d5 /src/test/java/org/sonar/runner/VersionTest.java
parent3edbcc9f18fb9dc9df1b3b9356eac2bdb7d309b8 (diff)
downloadsonar-scanner-cli-afcb0dc2b846309e6520dc00b918ce01e56221d5.tar.gz
sonar-scanner-cli-afcb0dc2b846309e6520dc00b918ce01e56221d5.zip
Fix classloader issue with ant 1.7.x
Diffstat (limited to 'src/test/java/org/sonar/runner/VersionTest.java')
-rw-r--r--src/test/java/org/sonar/runner/VersionTest.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/test/java/org/sonar/runner/VersionTest.java b/src/test/java/org/sonar/runner/VersionTest.java
new file mode 100644
index 0000000..1324f86
--- /dev/null
+++ b/src/test/java/org/sonar/runner/VersionTest.java
@@ -0,0 +1,36 @@
+/*
+ * Sonar Standalone Runner
+ * Copyright (C) 2011 SonarSource
+ * dev@sonar.codehaus.org
+ *
+ * This program 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.
+ *
+ * This program 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 02
+ */
+package org.sonar.runner;
+
+import org.junit.Test;
+import org.sonar.runner.Version;
+
+import static org.fest.assertions.Assertions.assertThat;
+
+public class VersionTest {
+
+ @Test
+ public void shouldLoadVersion() {
+ String version = Version.getVersion();
+ assertThat(version).contains(".");
+ assertThat(version).doesNotContain("$");
+ }
+
+}