Package com.volantis.xml.pipeline.sax.dynamic

Examples of com.volantis.xml.pipeline.sax.dynamic.DynamicElementRule.startElement()


            // if a rule has been registered then execute it
            if (rule != null) {
                Object object = null;
                try {
                    object = rule.startElement(dynamicProcess,
                                                      searchName,
                                                      atts);
                    // store the returned object away so that we can use it
                    // when end element for this rule is invoked
                } finally {
View Full Code Here


        addAttribute("name", name);
        addAttribute("value", value);
        addAttribute("from", from);

        DynamicElementRule rule = new HeaderRule(entityFactoryMock);
        XMLProcess process = (XMLProcess) rule.startElement(dynamicProcessMock,
                elementName, attributes);

        dynamicProcessMock.expects.removeProcess(process);

        rule.endElement(dynamicProcessMock, elementName, process);
View Full Code Here

        // =====================================================================
        DynamicElementRule rule = new ScriptRule();

        addAttribute("ref", ref);

        rule.startElement(dynamicProcessMock, elementName, attributes);
    }

}
View Full Code Here

        addAttribute("path", path);
        addAttribute("secure", "" + secure);
        addAttribute("version", version.getName());

        DynamicElementRule rule = new CookieRule(entityFactoryMock);
        XMLProcess process = (XMLProcess) rule.startElement(dynamicProcessMock,
                elementName, attributes);

        dynamicProcessMock.expects.removeProcess(process);

        rule.endElement(dynamicProcessMock, elementName, process);
View Full Code Here

        addAttribute("value", value);
        addAttribute("from", from);
        addAttribute("target", target);

        DynamicElementRule rule = new ParameterRule(entityFactoryMock);
        XMLProcess process = (XMLProcess) rule.startElement(dynamicProcessMock,
                elementName, attributes);

        dynamicProcessMock.expects.removeProcess(process);

        rule.endElement(dynamicProcessMock, elementName, process);
View Full Code Here

        // =====================================================================
        DynamicElementRule rule = new ProxyRule();

        addAttribute("ref", ref);

        rule.startElement(dynamicProcessMock, elementName, attributes);
    }

}
View Full Code Here

        // Prepare mocks
        contextMock.expects.findObject(CacheProperties.class).
                returns(properties).any();

        DynamicElementRule rule = new CacheInfoRule();
        Object obj = rule.startElement(dynamicProcessMock, elementName,
                attributes);

        assertNull(obj);

        rule.endElement(dynamicProcessMock, elementName, attributes);
View Full Code Here

        dynamicProcessMock.expects.getPipeline().returns(pipeline);
        dynamicProcessMock.fuzzy.addProcess(mockFactory.
                expectsInstanceOf(CacheBodyOperationProcess.class));

        //startElement
        EndElementAction action = (EndElementAction) rule.
                startElement(dynamicProcessMock, elementName, attributes);
        assertNotNull(action);
        assertNotEquals(action, EndElementAction.DO_NOTHING);

        //Prepare mocks for endElement method
View Full Code Here

        // Prepare mocks for startElement method
        contextMock.expects.findObject(CacheProperties.class).
                returns(null).any();

        //startElement   
        EndElementAction action = (EndElementAction) rule.
                startElement(dynamicProcessMock, elementName, attributes);

        assertNotNull(action);
        assertEquals(action, EndElementAction.DO_NOTHING);
View Full Code Here

        dynamicProcessMock.fuzzy.error(
                mockFactory.expectsInstanceOf(SAXParseException.class));

        DynamicElementRule rule = new CacheInfoRule();
        EndElementAction action = (EndElementAction) rule.startElement(
                dynamicProcessMock, elementName, attributes);
        assertNull(action);
        rule.endElement(dynamicProcessMock, elementName, action);
    }
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.