Examples of Contribution


Examples of org.apache.tuscany.sca.node.Contribution

     * @throws java.lang.Exception
     */
    @BeforeClass
    protected void setUp() throws Exception {
      String location = ContributionLocationHelper.getContributionLocation("helloworld/helloworld.composite");
    node = NodeFactory.newInstance().createNode("CallBackApiTest.composite", new Contribution("c1", location));
    node.start();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.Contribution

    @BeforeClass
    public static void init() throws Exception {
        try {
            String contribution = ContributionLocationHelper.getContributionLocation(CustomerServiceTestCase.class);
            node = NodeFactory.newInstance().createNode("customer.composite", new Contribution("customer", contribution));
            node.start();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.Contribution

            + " </composite>";

    @Test
    public void testNodeWithCompositeContent() {
        NodeFactory factory = new NodeFactoryImpl();
        Contribution contribution = new Contribution("c1", new File("target/test-classes").toURI().toString());
        Node node = factory.createNode(new StringReader(composite), contribution);
        testNode2(node);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.Contribution

    }

    @Test
    public void testNodeWithRelativeCompositeURI() {
        NodeFactory factory = new NodeFactoryImpl();
        Contribution contribution = new Contribution("c1", new File("target/test-classes").toURI().toString());
        String compositeURI = "HelloWorld.composite";
        Node node = factory.createNode(compositeURI, contribution);
        testNode(node);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.Contribution

    @SuppressWarnings("deprecation")
    @Test
    public void testNodeWithAbsoluteCompositeURI() throws MalformedURLException {
        NodeFactory factory = new NodeFactoryImpl();
        Contribution contribution = new Contribution("c1", new File("target/test-classes").toURL().toString());
        String compositeURI = new File("target/test-classes/HelloWorld.composite").toURL().toString();
        Node node = factory.createNode(compositeURI, contribution);
        testNode(node);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.Contribution

    }

    @Test
    public void testGetServiceEndpoints() {
        NodeFactory factory = new NodeFactoryImpl();
        Contribution contribution = new Contribution("c1", new File("target/test-classes").toURI().toString());
        NodeImpl node = (NodeImpl)factory.createNode(new StringReader(composite), contribution);
        node.start();
        List<Endpoint> es = node.getServiceEndpoints();  
        Assert.assertEquals(1, es.size());
        Assert.assertEquals("HelloWorld2", es.get(0).getComponent().getName());
View Full Code Here

Examples of org.apache.tuscany.sca.node.Contribution

    private static Node node;

    @Override
    protected void setUp() throws Exception {
        String location = ContributionLocationHelper.getContributionLocation(HelloworldService.class);
        node = NodeFactory.getInstance().createNode("Helloworld.composite", new Contribution("test", "./target/classes"));     
        System.out.println("SCA Node API ClassLoader: " + node.getClass().getClassLoader());
        node.start();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.Contribution

    }

    @Override
    protected void setUp() throws Exception {
        String contribution = "target/classes";
        node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-include.composite", new Contribution("test", contribution));
        node.start();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.Contribution

    @BeforeClass
    public static void setUp() throws Exception {
        try {
            NodeFactory factory = NodeFactory.newInstance();
            node = factory.createNode(new File("src/main/resources/primitivesservice.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString()));
            node.start();
        } catch(Throwable e) {
            e.printStackTrace();
            Assert.fail();
        }
View Full Code Here

Examples of org.apache.tuscany.sca.node.Contribution

    @Before
    public void setUp() throws Exception {
       
  NodeFactory factory = NodeFactory.newInstance();
        node = factory.createNode(new File("src/main/resources/OneWayContribution/META-INF/sca-deployables/oneWay.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/OneWayContribution/META-INF/sca-deployables/").toURI().toURL().toString()));
        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.