Package org.apache.felix.ipojo.metadata

Examples of org.apache.felix.ipojo.metadata.Element


        String opt = dep.getAttribute("optional");
        assertEquals("Check optionality", "true", opt);
    }
   
    public void testCallbackUnbind() {
        Element dep = getDependencyById(deps, "Baz");
        String opt = dep.getAttribute("optional");
        assertEquals("Check optionality", "true", opt);
    }
View Full Code Here


        String opt = dep.getAttribute("optional");
        assertEquals("Check optionality", "true", opt);
    }
   
    public void testBoth() {
        Element dep = getDependencyById(deps, "inv");
        String opt = dep.getAttribute("optional");
        assertEquals("Check optionality", "true", opt);
    }
View Full Code Here

        String opt = dep.getAttribute("optional");
        assertEquals("Check optionality", "true", opt);
    }
   
    public void testBindOnly() {
        Element dep = getDependencyById(deps, "bindonly");
        String opt = dep.getAttribute("optional");
        assertEquals("Check optionality", "true", opt);
    }
View Full Code Here

        String opt = dep.getAttribute("optional");
        assertEquals("Check optionality", "true", opt);
    }
   
    public void testUnbindOnly() {
        Element dep = getDependencyById(deps, "unbindonly");
        String opt = dep.getAttribute("optional");
        assertEquals("Check optionality", "true", opt);
    }
View Full Code Here

        String opt = dep.getAttribute("optional");
        assertEquals("Check optionality", "true", opt);
    }
   
    public void testNullable() {
        Element meta = helper.getMetadata("org.apache.felix.ipojo.test.scenarios.component.NullableDependency");
        Element[] deps = meta.getElements("requires");
        Element fs = getDependencyById(deps, "fs");
        String nullable = fs.getAttribute("nullable");
        assertNotNull("Check nullable", nullable);
        assertEquals("Check nullable value", "true", nullable);
    }
View Full Code Here

        assertNotNull("Check nullable", nullable);
        assertEquals("Check nullable value", "true", nullable);
    }
   
    public void testNoNullable() {
        Element meta = helper.getMetadata("org.apache.felix.ipojo.test.scenarios.component.NullableDependency");
        Element[] deps = meta.getElements("requires");
        Element fs = getDependencyById(deps, "fs2");
        String nullable = fs.getAttribute("nullable");
        assertNotNull("Check nullable", nullable);
        assertEquals("Check nullable value", "false", nullable);
    }
View Full Code Here

        assertNotNull("Check nullable", nullable);
        assertEquals("Check nullable value", "false", nullable);
    }
   
    public void testDefaultImplmentation() {
        Element meta = helper.getMetadata("org.apache.felix.ipojo.test.scenarios.component.DefaultImplementationDependency");
        Element[] deps = meta.getElements("requires");
        Element fs = getDependencyById(deps, "fs");
        String di = fs.getAttribute("default-implementation");
        assertNotNull("Check DI", di);
        assertEquals("Check DI value", ProvidesSimple.class.getName(), di);
    }
View Full Code Here

   
    private IPOJOHelper helper;
   
    public void setUp() {
        helper = new IPOJOHelper(this);
        Element meta = helper.getMetadata("org.apache.felix.ipojo.test.scenarios.component.AggregateDependency");
        deps = meta.getElements("requires");
    }
View Full Code Here

        deps = meta.getElements("requires");
    }
   
   
    public void testCallbackBind() {
        Element dep = getDependencyById(deps, "Bar");
        String opt = dep.getAttribute("aggregate");
        assertEquals("Check aggregate", "true", opt);
    }
View Full Code Here

        String opt = dep.getAttribute("aggregate");
        assertEquals("Check aggregate", "true", opt);
    }
   
    public void testCallbackUnbind() {
        Element dep = getDependencyById(deps, "Baz");
        String opt = dep.getAttribute("aggregate");
        assertEquals("Check aggregate", "true", opt);
    }
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.metadata.Element

Copyright © 2018 www.massapicom. 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.