Package org.apache.tuscany.model.assembly

Examples of org.apache.tuscany.model.assembly.ComponentType.initialize()


        assertSame(mockType, type);
    }

    public void testHelloWorldWithFieldProperties() throws ConfigurationLoadException {
        ComponentType type = loader.loadComponentTypeByIntrospection(HelloWorldWithFieldProperties.class);
        type.initialize(null);
        Assert.assertNotNull(type);
        List<Property> props = type.getProperties();
        Assert.assertEquals(5, props.size());

        Property prop = type.getProperty("text");
View Full Code Here


public class ComponentTypeLoaderTestCase extends LoaderTestSupport {

    public void testMinimal() throws XMLStreamException, ConfigurationLoadException {
        XMLStreamReader reader = getReader("<componentType xmlns='http://www.osoa.org/xmlns/sca/0.9'><service name='service1'/></componentType>");
        ComponentType type = (ComponentType) registry.load(reader, loaderContext);
        type.initialize(null);
        assertNotNull(type);
        assertEquals(1, type.getServices().size());
        Service service = type.getService("service1");
        assertEquals("service1", service.getName());
        assertEquals(XMLStreamConstants.END_DOCUMENT, reader.next());
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.