Examples of uninstallFeature()


Examples of org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature()

        replay(bundleManager);
        FeaturesServiceImpl svc = new FeaturesServiceImpl(bundleManager);
        svc.addRepository(uri);
        svc.installFeature("f1", "0.1");
        svc.uninstallFeature("f1", "0.1");
        svc.uninstallFeature("f2", "0.2");
        verify(bundleManager);
    }

    @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature()

        replay(bundleManager);
        FeaturesServiceImpl svc = new FeaturesServiceImpl(bundleManager);
        svc.addRepository(uri);
        svc.installFeature("f1", "0.1");
        svc.uninstallFeature("f1", "0.1");
        svc.uninstallFeature("f2", "0.2");
        verify(bundleManager);
    }

    @SuppressWarnings("unchecked")
    @Test
View Full Code Here

Examples of org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature()

        replay(bundleManager);
        FeaturesServiceImpl svc = new FeaturesServiceImpl(bundleManager);
        svc.addRepository(uri);
        svc.installFeature("f2", "0.1");
        svc.installFeature("f1", "0.1");
        svc.uninstallFeature("f1", "0.1");
        svc.uninstallFeature("f2", "0.1");
        verify(bundleManager);
    }

    @Test
View Full Code Here

Examples of org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature()

        FeaturesServiceImpl svc = new FeaturesServiceImpl(bundleManager);
        svc.addRepository(uri);
        svc.installFeature("f2", "0.1");
        svc.installFeature("f1", "0.1");
        svc.uninstallFeature("f1", "0.1");
        svc.uninstallFeature("f2", "0.1");
        verify(bundleManager);
    }

    @Test
    public void testGetFeaturesShouldHandleDifferentVersionPatterns() throws Exception {
View Full Code Here

Examples of org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature()

        });

        replay(bundleContext, installedBundle, sysBundle, frameworkWiring);

        try {
            svc.uninstallFeature("f1");
            fail("Uninstall should have failed as feature is not installed");
        } catch (Exception e) {
            // ok
        }
View Full Code Here

Examples of org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature()

        svc.installFeature("f1", "0.1", EnumSet.of(FeaturesService.Option.NoAutoRefreshBundles));
        svc.installFeature("f1", "0.2", EnumSet.of(FeaturesService.Option.NoAutoRefreshBundles));

        try {
            svc.uninstallFeature("f1");
            fail("Uninstall should have failed as feature is installed in multiple versions");
        } catch (Exception e) {
            // ok
        }
View Full Code Here

Examples of org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature()

            fail("Uninstall should have failed as feature is installed in multiple versions");
        } catch (Exception e) {
            // ok
        }

        svc.uninstallFeature("f1", "0.1");
        svc.uninstallFeature("f1");
    }   
   
    // Tests Add and Remove Repository
    public void testAddAndRemoveRepository() throws Exception {
View Full Code Here

Examples of org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature()

        } catch (Exception e) {
            // ok
        }

        svc.uninstallFeature("f1", "0.1");
        svc.uninstallFeature("f1");
    }   
   
    // Tests Add and Remove Repository
    public void testAddAndRemoveRepository() throws Exception {
View Full Code Here

Examples of org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature()

        svc.addRepository(uri);

        svc.installFeature("f1", "0.1");

        // Uninstall repository
        svc.uninstallFeature("f1", "0.1");
        svc.uninstallFeature("f2", "0.1");

    }

    // Tests install of a Repository that includes a feature with a feature dependency
View Full Code Here

Examples of org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature()

        svc.installFeature("f1", "0.1");

        // Uninstall repository
        svc.uninstallFeature("f1", "0.1");
        svc.uninstallFeature("f2", "0.1");

    }

    // Tests install of a Repository that includes a feature with a feature dependency
    public void testInstallFeatureWithDependantFeaturesAndVersionWithoutPreinstall() throws Exception {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.