This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 7f5597ec7b05d6e127e0d89860cce33926f8745d
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu Mar 26 14:03:55 2020 +0100

    CAMEL-14715 - First steps to remove Karaf support from main repo 
(camel-karaf migration)
---
 .../catalog/maven/MavenVersionManagerTest.java     | 38 ----------------------
 1 file changed, 38 deletions(-)

diff --git 
a/catalog/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenVersionManagerTest.java
 
b/catalog/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenVersionManagerTest.java
index e3c74e2..6e8bafe 100644
--- 
a/catalog/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenVersionManagerTest.java
+++ 
b/catalog/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenVersionManagerTest.java
@@ -23,7 +23,6 @@ import org.apache.camel.catalog.CamelCatalog;
 import org.apache.camel.catalog.DefaultCamelCatalog;
 import org.apache.camel.catalog.DefaultRuntimeProvider;
 import org.apache.camel.catalog.impl.CatalogHelper;
-import org.apache.camel.catalog.karaf.KarafRuntimeProvider;
 import org.junit.Assert;
 import org.junit.Ignore;
 import org.junit.Test;
@@ -136,43 +135,6 @@ public class MavenVersionManagerTest extends Assert {
     }
 
     @Test
-    public void testCatalogKarafRuntimeProviderVersionSwitch() throws 
Exception {
-        CamelCatalog catalog = new DefaultCamelCatalog(true);
-        MavenVersionManager mvm = new MavenVersionManager();
-        mvm.addMavenRepository("asf-ga", 
"https://repo.maven.apache.org/maven2";);
-        mvm.addMavenRepository("asf-snapshots", 
"https://repository.apache.org/content/groups/snapshots";);
-        catalog.setVersionManager(mvm);
-        catalog.setRuntimeProvider(new KarafRuntimeProvider());
-
-        boolean loaded = catalog.loadVersion("2.18.1");
-        assertTrue("Unable to load Camel Catalog 2.18.1", loaded);
-        loaded = catalog.loadRuntimeProviderVersion("org.apache.camel", 
"camel-catalog-provider-karaf", "2.18.1");
-        assertTrue("Unable to load Karaf Provider Camel Catalog 2.18.1", 
loaded);
-        int components = catalog.findComponentNames().size();
-        System.out.println("2.18.1 has " + components + " components");
-        assertFalse("Should not have ejb component", 
catalog.findComponentNames().contains("ejb"));
-
-        loaded = catalog.loadVersion("2.19.1");
-        assertTrue("Unable to switch to Camel Catalog 2.19.1", loaded);
-        loaded = catalog.loadRuntimeProviderVersion("org.apache.camel", 
"camel-catalog-provider-karaf", "2.19.1");
-        assertTrue("Unable to load Karaf Provider Camel Catalog 2.19.1", 
loaded);
-        int componentsNewer = catalog.findComponentNames().size();
-        assertTrue("Both catalog versions shouldn't have the same count of 
components.", components != componentsNewer);
-        System.out.println("2.19.1 has " + componentsNewer + " components");
-        assertFalse("Should not have ejb component", 
catalog.findComponentNames().contains("ejb"));
-
-        loaded = catalog.loadVersion("2.18.1");
-        assertTrue("Unable to load Camel Catalog 2.18.1", loaded);
-        loaded = catalog.loadRuntimeProviderVersion("org.apache.camel", 
"camel-catalog-provider-karaf", "2.18.1");
-        assertTrue("Unable to load Karaf Provider Camel Catalog 2.18.1", 
loaded);
-        int components3 = catalog.findComponentNames().size();
-        assertTrue("Newer load does not match older one", components == 
components3);
-        assertFalse("Should not have ejb component", 
catalog.findComponentNames().contains("ejb"));
-
-        System.out.println("2.18.1 has " + components3 + " components");
-    }
-
-    @Test
     public void testLoadUnknownVersion() throws Exception {
         MavenVersionManager manager = new MavenVersionManager();
         String current = manager.getLoadedVersion();

Reply via email to