camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject camel git commit: CAMEL-11506: Added unit test
Date Tue, 04 Jul 2017 07:24:03 GMT
Repository: camel
Updated Branches:
  refs/heads/master cbaeb0481 -> 51d845b61


CAMEL-11506: Added unit test


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/51d845b6
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/51d845b6
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/51d845b6

Branch: refs/heads/master
Commit: 51d845b610543a278ea2f37304c6d385bf82998a
Parents: cbaeb04
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Tue Jul 4 09:23:14 2017 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Tue Jul 4 09:23:14 2017 +0200

----------------------------------------------------------------------
 .../camel/catalog/maven/MavenVersionManagerTest.java    | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/51d845b6/platforms/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenVersionManagerTest.java
----------------------------------------------------------------------
diff --git a/platforms/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenVersionManagerTest.java
b/platforms/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenVersionManagerTest.java
index 8342d2a..e9cdcb0 100644
--- a/platforms/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenVersionManagerTest.java
+++ b/platforms/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenVersionManagerTest.java
@@ -175,4 +175,16 @@ public class MavenVersionManagerTest extends TestCase {
 
         System.out.println("2.18.1 has " + components3 + " components");
     }
+
+    @Test
+    public void testLoadUnknownVersion() throws Exception {
+        MavenVersionManager manager = new MavenVersionManager();
+        String current = manager.getLoadedVersion();
+        assertNull(current);
+
+        // version 2.99 does not exists and cannot be loaded
+        boolean loaded = manager.loadVersion("2.99");
+        assertFalse(loaded);
+    }
+
 }


Mime
View raw message