Package com.volantis.mcs.integration.iapi

Examples of com.volantis.mcs.integration.iapi.ArgumentsElement


       
        // Create a parent ArgumentsElement and push it onto the stack
        final String argName = "arg-name";
        final String argValue = "arg-value";
        final BooleanWrapper calledAdd = new BooleanWrapper(false);
        ArgumentsElement arguments = new ArgumentsElement() {
            void addArgument(String name, String value) {
                calledAdd.setValue(true);
                assertEquals("Unexpected value for name param.",
                        argName, name);
                assertEquals("Unexpected value for value param.",
View Full Code Here


        ContextInternals.setMarinerPageContext(requestContext, pageContext);
       
        InvokeElement invoke = new InvokeElement();
        pageContext.pushIAPIElement(invoke);
       
        ArgumentsElement element = new ArgumentsElement();
        int result = element.elementStart(requestContext, null);
       
        assertEquals("Unexpected result from elementStart.",
                IAPIConstants.PROCESS_ELEMENT_BODY, result);
    }
View Full Code Here

                assertEquals("Unexpected argument value.", argValue, value);
            }
        };
        pageContext.pushIAPIElement(invoke);

        ArgumentsElement element = new ArgumentsElement();       
        // call elementStart to ensure we have our parent.
        element.elementStart(requestContext, null);
        element.addArgument(argName, argValue);
        int result = element.elementEnd(requestContext, null);
        assertEquals("Unexpected result from elementEnd.",
                IAPIConstants.CONTINUE_PROCESSING, result);
       
        assertTrue("InvokeElement.setArguments should have been invoked.",
                calledSetArgs.getValue());
View Full Code Here

     * Push an ArgumentsElement onto the top of our stack of elements.
     * @param saxAttributes The SAX Attributes with the infomation required
     * to create our IAPIElement   
     */
    protected void pushArgumentsEntryOnStack(Attributes saxAttributes) {
        ArgumentsElement element = new ArgumentsElement();

        elementStackEntry = new IAPIElementStackEntry(element, null);
        elementStack.push(elementStackEntry);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.integration.iapi.ArgumentsElement

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.