Package com.eviware.soapui.impl.wsdl.testcase

Examples of com.eviware.soapui.impl.wsdl.testcase.WsdlTestRunContext


                return null;
            }

            if (getJdbcRequest().getResponse() != null) {
                assertion.assertResponse(new JdbcMessageExchange(this, getJdbcRequest().getResponse()),
                        new WsdlTestRunContext(this));
                notifier.notifyChange();
            }

            return assertion;
        } catch (Exception e) {
View Full Code Here


    @Test
    public void addAndRemoveHeader() {
        System.setProperty(GlobalHttpHeadersRequestFilter.HEADER_SYSTEM_PROPERTY_PREFIX + "User-Agent", "Testing");

        WsdlTestRunContext context = mockContext();
        AbstractHttpRequest<?> request = mockRequest(new StringToStringsMap());

        globalHttpHeadersRequestFilter.filterAbstractHttpRequest(context, request);
        globalHttpHeadersRequestFilter.afterAbstractHttpResponse(context, request);
View Full Code Here

    @Test
    public void complementAndRemoveHeader() {
        System.setProperty(GlobalHttpHeadersRequestFilter.HEADER_SYSTEM_PROPERTY_PREFIX + "User-Agent", "Testing");

        WsdlTestRunContext context = mockContext();
        StringToStringsMap requestHeaders = new StringToStringsMap();
        requestHeaders.add("User-Agent", "Existing header");
        AbstractHttpRequest<?> request = mockRequest(requestHeaders);

        globalHttpHeadersRequestFilter.filterAbstractHttpRequest(context, request);
View Full Code Here

    public void propertyChange(PropertyChangeEvent arg0) {
        if (arg0.getPropertyName().equals(TestAssertion.CONFIGURATION_PROPERTY)
                || arg0.getPropertyName().equals(TestAssertion.DISABLED_PROPERTY)) {
            if (getJdbcRequest().getResponse() != null) {
                assertResponse(new WsdlTestRunContext(this));
            }
        }
    }
View Full Code Here

    @Test
    public void replaceAndRemoveHeader() {
        System.setProperty(GlobalHttpHeadersRequestFilter.HEADER_SYSTEM_PROPERTY_PREFIX + "User-Agent", "Testing");
        System.setProperty(GlobalHttpHeadersRequestFilter.REPLACE_HEADERS_SYSTEM_PROPERTY, "true");

        WsdlTestRunContext context = mockContext();
        StringToStringsMap requestHeaders = new StringToStringsMap();
        requestHeaders.add("User-Agent", "Existing header");
        AbstractHttpRequest<?> request = mockRequest(requestHeaders);

        globalHttpHeadersRequestFilter.filterAbstractHttpRequest(context, request);
View Full Code Here

        }

        protected ValidationError[] validateXml(String xml) {
            if (getModelItem() instanceof WsdlTestRequest) {
                WsdlTestRequest testRequest = (WsdlTestRequest) getModelItem();
                testRequest.assertResponse(new WsdlTestRunContext(testRequest.getTestStep()));
            }

            WsdlOperation operation = getModelItem().getOperation();
            WsdlValidator validator = new WsdlValidator((operation.getInterface()).getWsdlContext());
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.testcase.WsdlTestRunContext

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.