Package org.apache.tuscany.sca.node

Examples of org.apache.tuscany.sca.node.SCANodeFactory.createSCANode()


    private SCANode node;

    @Override
    protected void setUp() throws Exception {
        SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
        node = nodeFactory.createSCANode(new File("src/main/resources/PromotedServiceNotFound/Calculator.composite").toURL().toString(),
                             new SCAContribution("TestContribution",
                                                 new File("src/main/resources/PromotedServiceNotFound").toURL().toString()));
        node.start();
        calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent");
    }
View Full Code Here


    private SCANode node;

    @Override
    protected void setUp() throws Exception {
        SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
        node = nodeFactory.createSCANode(new File("src/main/resources/UnresolvedComponentImplementation/Calculator.composite").toURL().toString(),
                             new SCAContribution("TestContribution",
                                                 new File("src/main/resources/UnresolvedComponentImplementation").toURL().toString()));
    }

    @Override
View Full Code Here

    @Override
    protected void setUp() throws Exception {
        SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
        node =
            nodeFactory.createSCANode("Calculator.composite", new SCAContribution("TestContribution", new File("src/main/resources/NoMatchingBinding")
                .toURL().toString()));

        node.start();
        calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent");
    }
View Full Code Here

    @Test
    public void testNodeWithCompositeContent() {
        SCANodeFactory factory = new NodeFactoryImpl();
        SCAContribution contribution = new SCAContribution("c1", new File("target/test-classes").toURI().toString());
        SCANode node = factory.createSCANode("HelloWorld.composite", composite, contribution);
        testNode(node);
    }
   
    @Test
    public void testNodeWithCompositeContentAndNoContribution() {
View Full Code Here

    }
   
    @Test
    public void testNodeWithCompositeContentAndNoContribution() {
        SCANodeFactory factory = new NodeFactoryImpl();
        SCANode node = factory.createSCANode("HelloWorld.composite", composite);
        testNode(node);
    }   

    @Test
    public void testNodeWithoutCompositeURI() {
View Full Code Here

    @Test
    public void testNodeWithoutCompositeURI() {
        SCANodeFactory factory = new NodeFactoryImpl();
        SCAContribution contribution = new SCAContribution("c1", new File("target/test-classes").toURI().toString());
        SCANode node = factory.createSCANode(null, contribution);
        testNode(node);
    }
   
    @Test
    public void testNodeWithCompositeURI() {
View Full Code Here

    @Test
    public void testNodeWithCompositeURI() {
        SCANodeFactory factory = new NodeFactoryImpl();
        SCAContribution contribution = new SCAContribution("c1", new File("target/test-classes").toURI().toString());
        String compositeURI = new File("target/test-classes/HelloWorld.composite").toURI().toString();
        SCANode node = factory.createSCANode(compositeURI, contribution);
        testNode(node);
    }

    @Test
    public void testNodeWithRelativeCompositeURI() {
View Full Code Here

    @Test
    public void testNodeWithRelativeCompositeURI() {
        SCANodeFactory factory = new NodeFactoryImpl();
        SCAContribution contribution = new SCAContribution("c1", new File("target/test-classes").toURI().toString());
        String compositeURI = "HelloWorld.composite";
        SCANode node = factory.createSCANode(compositeURI, contribution);
        testNode(node);
    }

    @Test
    public void testNodeWithRelativeCompositeURIAndNoContribution() {
View Full Code Here

    private SCANode node;

    @Override
    protected void setUp() throws Exception {
        SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
        node = nodeFactory.createSCANode(new File("src/main/resources/ServiceNotFoundForComponentService/Calculator.composite").toURL().toString(),
                             new SCAContribution("TestContribution",
                                                 new File("src/main/resources/ServiceNotFoundForComponentService").toURL().toString()));
        node.start();
        calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent");
    }
View Full Code Here

    private static SCANode node;

    @Before
    public void init() {
        SCANodeFactory factory = SCANodeFactory.newInstance();
        node = factory.createSCANode("jmsobject/helloworld.composite",
                new SCAContribution("test", "./target/classes"));

        node.start();
    }
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.