diff options
author | Godin <mandrikov@gmail.com> | 2010-11-01 11:43:37 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-11-01 11:43:37 +0000 |
commit | 7e6ae83107c50fae8f11aa41304adaecf7d0d4fc (patch) | |
tree | 76b9d0e33d4cc3e5f3294626498781ae09a32a79 /sonar-server/src/test | |
parent | dc93094572da8cffd6e0f8bb6456420982700260 (diff) | |
download | sonarqube-7e6ae83107c50fae8f11aa41304adaecf7d0d4fc.tar.gz sonarqube-7e6ae83107c50fae8f11aa41304adaecf7d0d4fc.zip |
SONAR-1893: Display new sonar releases
Diffstat (limited to 'sonar-server/src/test')
-rw-r--r-- | sonar-server/src/test/java/org/sonar/server/plugins/SonarUpdateTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-server/src/test/java/org/sonar/server/plugins/SonarUpdateTest.java b/sonar-server/src/test/java/org/sonar/server/plugins/SonarUpdateTest.java index 17356a7538f..45369fd4816 100644 --- a/sonar-server/src/test/java/org/sonar/server/plugins/SonarUpdateTest.java +++ b/sonar-server/src/test/java/org/sonar/server/plugins/SonarUpdateTest.java @@ -23,6 +23,7 @@ import org.junit.Test; import org.sonar.updatecenter.common.Plugin; import org.sonar.updatecenter.common.Release; import org.sonar.updatecenter.common.Sonar; +import org.sonar.updatecenter.common.Version; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; @@ -41,7 +42,7 @@ public class SonarUpdateTest { @Test public void incompatibleUpdateIfRequiredPluginUpgrades() { SonarUpdate update = new SonarUpdate(new Release(new Sonar(), "2.3")); - update.addPluginToUpgrade(new Plugin("old")); + update.addPluginToUpgrade(new Release(new Plugin("old"), Version.create("0.2"))); assertFalse(update.isIncompatible()); assertTrue(update.hasWarnings()); assertTrue(update.requiresPluginUpgrades()); |