Package org.apache.felix.ipojo.manipulator.spi

Examples of org.apache.felix.ipojo.manipulator.spi.AbsBindingModule.load()


    }

    public void testSelectionOnClassNodeOnly() throws Exception {

        AbsBindingModule module = new MonoBindingModule(OnTypeOnly.class);
        module.load();
        registry.addBindings(module);

        // Verifications
        assertClassSelection(OnTypeOnly.class, equalTo(visitor));
        assertFieldSelection(OnTypeOnly.class, nullValue());
View Full Code Here


    }

    public void testSelectionOnFieldNodeOnly() throws Exception {

        AbsBindingModule module = new MonoBindingModule(OnFieldOnly.class);
        module.load();
        registry.addBindings(module);

        // Verifications
        assertClassSelection(OnFieldOnly.class, nullValue());
        assertFieldSelection(OnFieldOnly.class, equalTo(visitor));
View Full Code Here

    }

    public void testSelectionOnMethodNodeOnly() throws Exception {

        AbsBindingModule module = new MonoBindingModule(OnMethodOnly.class);
        module.load();
        registry.addBindings(module);

        // Verifications
        assertClassSelection(OnMethodOnly.class, nullValue());
        assertFieldSelection(OnMethodOnly.class, nullValue());
View Full Code Here

    }

    public void testSelectionOnMethodParameterOnly() throws Exception {

        AbsBindingModule module = new MonoBindingModule(OnParameterOnly.class);
        module.load();
        registry.addBindings(module);

        // Verifications
        assertClassSelection(OnParameterOnly.class, nullValue());
        assertFieldSelection(OnParameterOnly.class, nullValue());
View Full Code Here

    }

    public void testSelectionOBothMethodAndParameter() throws Exception {

        AbsBindingModule module = new MonoBindingModule(OnBothMethodAndParameter.class);
        module.load();
        registry.addBindings(module);

        // Verifications
        assertClassSelection(OnBothMethodAndParameter.class, nullValue());
        assertFieldSelection(OnBothMethodAndParameter.class, nullValue());
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.