Package com.volantis.mcs.integration.iapi

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


    /**
     * Test the method elementEnd    
     */
    public void testElementEnd() throws Exception {
        ArgumentElement element = new ArgumentElement();
        // this method doesn't do anything so we can pass in two null params.
        int result = element.elementEnd(null, null);
        assertEquals("Unexpected result from elementEnd.",
                IAPIConstants.CONTINUE_PROCESSING, result);
    }
View Full Code Here


            }
        };       
        pageContext.pushIAPIElement(arguments);
       
        // Create the ArgumentElement and test the elementStart method.
        ArgumentElement element = new ArgumentElement();
        ArgumentAttributes attrs = new ArgumentAttributes();
        attrs.setName(argName);
        attrs.setValue(argValue);
       
        int result = element.elementStart(requestContext, attrs);
        assertEquals("Unexpected result from elementStart.",
                IAPIConstants.SKIP_ELEMENT_BODY, result);
       
        assertTrue("ArgumentsElement.addArgument should have been called",
                calledAdd.getValue());
View Full Code Here

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

        ArgumentAttributes attrs = new ArgumentAttributes();
        attrs.setName(saxAttributes.getValue("name"));
        attrs.setValue(saxAttributes.getValue("value"));
       
View Full Code Here

TOP

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

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.