Examples of XMLPipelineContext


Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext

        serverMock.addTransaction(expectedRequest, responseContent);

            XMLPipelineConfiguration config = createPipelineConfiguration();
            WebDriverConfiguration webdConf = retrieveWebdConfiguration(config);
            webdConf.setResponseContainsPipelineMarkup(true);
            XMLPipelineContext context =
                pipelineFactory.createPipelineContext(config,
                            createRootEnvironmentInteraction());

            WebDriverAccessor accessor = createWebDriverAccessor();
            // register the parameters that this test requires with the
            // WebDriverRequest
            WebDriverRequest request = accessor.getRequest(context);

            HTTPMessageEntities headers =
                    HTTPFactory.getDefaultInstance().
                    createHTTPMessageEntities();
            Header header1 = new HeaderImpl("name");
            header1.setValue("fred");
            Header header2 = new HeaderImpl("request2");
            header2.setValue("jane");
            headers.add(header1);
            headers.add(header2);
            request.setHeaders(headers);

            context.setProperty(WebDriverAccessor.class, accessor, false);

            doInContextTest(context,
                            "InlineHeaderTestCase.input.xml",
                            "InlineHeaderTestCase.expected.xml");
                }
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.