Package org.apache.tuscany.sca.node

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


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


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

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

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

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

    @Test
    public void testNodeWithRelativeCompositeURIAndNoContribution() {
        SCANode2Factory factory = SCANode2Factory.newInstance();
        String compositeURI = "HelloWorld.composite";
        SCANode2 node = factory.createSCANode(compositeURI, new SCAContribution[0]);
        testNode(node);
    }

    @Test
    public void testNodeWithClassLoader() {
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.