Package org.apache.tuscany.sca.implementation.bpel.impl

Examples of org.apache.tuscany.sca.implementation.bpel.impl.BPELImplementationProcessor


     * @throws Exception
     */
    public void testLoadValidComposite() throws Exception {
        XMLStreamReader reader = xmlFactory.createXMLStreamReader(new StringReader(COMPOSITE));
       
        BPELImplementationProcessor bpelProcessor = new BPELImplementationProcessor(modelFactories);
       
        while(true) {
            int event = reader.next();
            if(event == XMLStreamConstants.START_ELEMENT && IMPLEMENTATION_BPEL.equals(reader.getName())) {
                break;
            }
        }

        BPELImplementation implementation = bpelProcessor.read(reader);
       
        assertNotNull(implementation);
        assertEquals(new QName("http://tuscany.apache.org/implementation/bpel/example/helloworld", "HelloWorld"), implementation.getProcess());
    }
View Full Code Here


     * @throws Exception
     */
    public void testLoadInvalidComposite() throws Exception {
        XMLStreamReader reader = xmlFactory.createXMLStreamReader(new StringReader(COMPOSITE_INVALID));

        BPELImplementationProcessor bpelProcessor = new BPELImplementationProcessor(modelFactories);
       
        while(true) {
            int event = reader.next();
            if(event == XMLStreamConstants.START_ELEMENT && IMPLEMENTATION_BPEL.equals(reader.getName())) {
                break;
            }
        }

        try {
            bpelProcessor.read(reader);
           
            fail("InvalidException should have been thrown");
        } catch(Exception e) {
            assertTrue(true);
        }
View Full Code Here

     * @throws Exception
     */
    public void testLoadValidComposite() throws Exception {
        XMLStreamReader reader = xmlFactory.createXMLStreamReader(new StringReader(COMPOSITE));
       
        BPELImplementationProcessor bpelProcessor = new BPELImplementationProcessor(modelFactories);
       
        while(true) {
            int event = reader.next();
            if(event == XMLStreamConstants.START_ELEMENT && IMPLEMENTATION_BPEL.equals(reader.getName())) {
                break;
            }
        }

        BPELImplementation implementation = bpelProcessor.read(reader);
       
        assertNotNull(implementation);
        assertEquals(new QName("http://tuscany.apache.org/implementation/bpel/example/helloworld", "HelloWorld"), implementation.getProcess());
    }
View Full Code Here

     * @throws Exception
     */
    public void testLoadInvalidComposite() throws Exception {
        XMLStreamReader reader = xmlFactory.createXMLStreamReader(new StringReader(COMPOSITE_INVALID));

        BPELImplementationProcessor bpelProcessor = new BPELImplementationProcessor(modelFactories);
       
        while(true) {
            int event = reader.next();
            if(event == XMLStreamConstants.START_ELEMENT && IMPLEMENTATION_BPEL.equals(reader.getName())) {
                break;
            }
        }

        try {
            bpelProcessor.read(reader);
           
            fail("InvalidException should have been thrown");
        } catch(Exception e) {
            assertTrue(true);
        }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.implementation.bpel.impl.BPELImplementationProcessor

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.