Examples of FlowControlProcess


Examples of com.volantis.xml.pipeline.sax.impl.dynamic.FlowControlProcess

        return ruleConfigurator;
    }

    // javadoc inherited
    public XMLProcess createFlowControlProcess() {
        return new FlowControlProcess();
    }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.impl.dynamic.FlowControlProcess

        super(name);
    }

    // javadoc inherited
    protected XMLProcess createTestableProcess() {
        FlowControlProcess process = new FlowControlProcess();
        initializeProcess(process);
        return process;
    }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.impl.dynamic.FlowControlProcess

        next.assertWarningInvoked(EXCEPTION);
    }

    public void testStartProcess() throws Exception {
        // create an instance of the class that is being tested
        FlowControlProcess process =
                (FlowControlProcess) createTestableProcess();
       
        // set a next process
        XMLProcessTestable next = createNextProcess();
        process.setNextProcess(next);

        XMLPipelineContext context = process.getPipelineContext();
        SimpleFlowControlManager manager =
                (SimpleFlowControlManager) context.getFlowControlManager();

        Set flowControllers = (Set) PrivateAccessor.getField(manager,
                                                             "flowControllers");
               
        // invoke the method being tested
        process.startProcess();
       
        // ensure the process registered itself with the flow control manager
        assertTrue("FlowControlProcess was not registered with the flow " +
                   "control manager", flowControllers.contains(process));
       
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.impl.dynamic.FlowControlProcess

        next.assertStartProcessNotInvoked();
    }

    public void testStopProcess() throws Exception {
        // create an instance of the class that is being tested
        FlowControlProcess process =
                (FlowControlProcess) createTestableProcess();
       
        // set a next process
        XMLProcessTestable next = createNextProcess();
        process.setNextProcess(next);

        XMLPipelineContext context = process.getPipelineContext();
        SimpleFlowControlManager manager =
                (SimpleFlowControlManager) context.getFlowControlManager();

        Set flowControllers = (Set) PrivateAccessor.getField(manager,
                                                             "flowControllers");
       
        // add the process to the set
        flowControllers.add(process);
       
        // need to ensure the process has been started
        process.startProcess();
       
        // invoke the method being tested
        process.stopProcess();
       
        // ensure the process registered itself with the flow control manager
        assertFalse("FlowControlProcess was not unregistered with the flow " +
                    "control manager", flowControllers.contains(process));
       
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.