Package com.volantis.xml.pipeline.sax

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


                            XMLFilterImpl xmlFilter = new XMLFilterImpl();
                            return new XMLResponseConditioner(xmlFilter);
                        }
                    });

            XMLPipelineContext context =
                pipelineFactory.createPipelineContext(config,
                            createRootEnvironmentInteraction());

            doInContextTest(context,
                            "HTMLConditioningCanBeConfiguredTestCase.input.xml",
View Full Code Here

            };

            serverMock.addTransaction(null, responseContent);

            XMLPipelineConfiguration config = createPipelineConfiguration();
            XMLPipelineContext context =
                    pipelineFactory.createPipelineContext(config,
                            createRootEnvironmentInteraction());

            WebDriverAccessor accessor = createWebDriverAccessor();

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

            doInContextTest(context,
                            "SimpleResponsePopulationTestCase.input.xml",
                            "SimpleResponsePopulationTestCase.expected.xml");
            WebDriverResponse response = accessor.getResponse(context, "91");
View Full Code Here

            path = "/welcome.jsp";
            }

            XMLPipelineConfiguration config = createPipelineConfiguration();
            XMLPipelineContext context =
                pipelineFactory.createPipelineContext(config,
                            createRootEnvironmentInteraction());

            WebDriverAccessor accessor = createWebDriverAccessor();

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

            try {

                doInContextTest(context,
                                "SimpleMaxRedirectTestCase.input.xml",
View Full Code Here

        // Redirect from the original server back to the redirect server.
        serverMock.addTransaction(null, redirectContent1);

            XMLPipelineConfiguration config = createPipelineConfiguration();
            XMLPipelineContext context =
                pipelineFactory.createPipelineContext(config,
                            createRootEnvironmentInteraction());

            WebDriverAccessor accessor = createWebDriverAccessor();

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

            try {
                doInContextTest(context,
                                "SimpleRedirectTestCase.input.xml",
                                "SimpleRedirectTestCase.expected.xml");
View Full Code Here

        redirectServerMock3.addTransaction(null, finalContent);

        outputServerPort = redirectServerMock3.getServerPort();

            XMLPipelineConfiguration config = createPipelineConfiguration();
            XMLPipelineContext context =
                pipelineFactory.createPipelineContext(config,
                            createRootEnvironmentInteraction());

            WebDriverAccessor accessor = createWebDriverAccessor();

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

            doInContextTest(context,
                            "SimpleRedirectTestCase.input.xml",
                            "SimpleRedirectTestCase.expected.xml");
View Full Code Here

            "<p>As we are not following redirects we should not see this</p>"
        };
        redirectServerMock.addTransaction(null, redirectContent2);

            XMLPipelineConfiguration config = createPipelineConfiguration();
            XMLPipelineContext context =
                pipelineFactory.createPipelineContext(config,
                            createRootEnvironmentInteraction());

            WebDriverAccessor accessor = createWebDriverAccessor();

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

            doInContextTest(context,
                            "InlineRedirectConfigurationTestCase.input.xml",
                            "InlineRedirectConfigurationTestCase.expected.xml");
View Full Code Here

            rewriter.addRewritableURLPrefix("http://www.volantis.com/dsb/xpv",
                    "http://www.volantis.com/dsb/anotherService",
                    URLPrefixRewriteOperation.REPLACE_PREFIX);
            webdConf.setRedirectRewriteManager(rewriter);

            XMLPipelineContext context =
                pipelineFactory.createPipelineContext(config,
                            createRootEnvironmentInteraction());

            WebDriverAccessor accessor = createWebDriverAccessor();

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

            doInContextTest(context,
                    "RemapNoRedirectsConfigurationTestCase.input.xml",
                    "RemapNoRedirectsConfigurationTestCase.expected.xml");
View Full Code Here

        serverMock.addTransaction(null, response);

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

            WebDriverAccessor accessor = createWebDriverAccessor();

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

            doInContextTest(context,
                            "ProcessingOfPipelineMarkupTestCase.input.xml",
                            "ProcessingOfPipelineMarkupTestCase.expected.xml");
    }
View Full Code Here

        };

        serverMock.addTransaction(null, response);

            XMLPipelineConfiguration config = createPipelineConfiguration();
            XMLPipelineContext context =
                pipelineFactory.createPipelineContext(config,
                            createRootEnvironmentInteraction());

            WebDriverAccessor accessor = createWebDriverAccessor();

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

            doInContextTest(context,
                            "IgnoreErroredContentTestCase.input.xml",
                            "IgnoreErroredContentTestCase.expected.xml");
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.XMLPipelineContext

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.