Package org.apache.tuscany.core.implementation.java.mock.components

Examples of org.apache.tuscany.core.implementation.java.mock.components.Source


        connector.connect(component);

        deploymentContext.getModuleScope().start();
        component.start();
        CompositeComponent sourceComponent = (CompositeComponent) component.getChild("SourceComponent");
        Source source = (Source) sourceComponent.getServiceInstance("InnerSourceService");
        assertNotNull(source);
        AtomicComponent innerSourceComponent = (AtomicComponent) sourceComponent.getChild("InnerSourceComponent");
        Source innerSourceInstance = (Source) deploymentContext.getModuleScope().getInstance(innerSourceComponent);
        assertNotNull(innerSourceInstance);
        component.stop();
    }
View Full Code Here


        builder.setWireService(new JDKWireService());
        JavaAtomicComponent component =
            (JavaAtomicComponent) builder.build(parent, sourceComponentDefinition, deploymentContext);
        deploymentContext.getModuleScope().start();
        component.start();
        Source source = (Source) component.getServiceInstance();
        assertNotNull(source);
        component.stop();
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.core.implementation.java.mock.components.Source

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.