Package org.picocontainer.testmodel

Examples of org.picocontainer.testmodel.DependsOnArray


    public void testComponentDependsOnArrayOfEverythingElse() {
        container.registerComponentImplementation(DependsOnArray.class,
                                                  DependsOnArray.class,
                                                  new Parameter[] { new CollectionConstraint(Anything.ANYTHING) });
        DependsOnArray doa = (DependsOnArray) container.getComponentInstance(DependsOnArray.class);
        assertNotNull(doa);
        Object[] dependencies = doa.getDependencies();
        assertEquals(5, dependencies.length);
    }
View Full Code Here

TOP

Related Classes of org.picocontainer.testmodel.DependsOnArray

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.