From 7e6ae83107c50fae8f11aa41304adaecf7d0d4fc Mon Sep 17 00:00:00 2001 From: Godin Date: Mon, 1 Nov 2010 11:43:37 +0000 Subject: SONAR-1893: Display new sonar releases --- .../src/test/java/org/sonar/server/plugins/SonarUpdateTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sonar-server/src/test') 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()); -- cgit v1.2.3