summaryrefslogtreecommitdiff
path: root/BKUWebStart/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'BKUWebStart/src/test/java')
-rw-r--r--BKUWebStart/src/test/java/at/gv/egiz/bku/webstart/ConfiguratorTest.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/BKUWebStart/src/test/java/at/gv/egiz/bku/webstart/ConfiguratorTest.java b/BKUWebStart/src/test/java/at/gv/egiz/bku/webstart/ConfiguratorTest.java
index 0c08a276..0ea126cb 100644
--- a/BKUWebStart/src/test/java/at/gv/egiz/bku/webstart/ConfiguratorTest.java
+++ b/BKUWebStart/src/test/java/at/gv/egiz/bku/webstart/ConfiguratorTest.java
@@ -119,6 +119,30 @@ public class ConfiguratorTest {
assertEquals(expResult, result);
oldVersion = "1.0.9-SNAPSHOT-r123";
+ minVersion = "1.0.10-r432";
+ expResult = true;
+ result = Configurator.updateRequired(oldVersion, minVersion);
+ assertEquals(expResult, result);
+
+ oldVersion = "1.0.9-r123";
+ minVersion = "1.0.10-SNAPSHOT";
+ expResult = true;
+ result = Configurator.updateRequired(oldVersion, minVersion);
+ assertEquals(expResult, result);
+
+ oldVersion = "1.0.9-r123";
+ minVersion = "1.0.9-SNAPSHOT";
+ expResult = false;
+ result = Configurator.updateRequired(oldVersion, minVersion);
+ assertEquals(expResult, result);
+
+ oldVersion = "1.0.9-SNAPSHOT";
+ minVersion = "1.0.9-r349";
+ expResult = true;
+ result = Configurator.updateRequired(oldVersion, minVersion);
+ assertEquals(expResult, result);
+
+ oldVersion = "1.0.9-SNAPSHOT-r123";
minVersion = "1.0.10-SNAPSHOT";
expResult = true;
result = Configurator.updateRequired(oldVersion, minVersion);