Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2005-2010 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.springframework.ws.test.server;

Allows for setting up expectations on XPath expressions.

Implementations of this interface are returned by org.springframework.ws.test.client.RequestMatchers.xpath(java.lang.String) and org.springframework.ws.test.client.RequestMatchers.xpath(java.lang.String,java.util.Map), as part of the fluent API. As such, it is not typical to implement this interface yourself.

public interface ResponseXPathExpectations {

    
Expects the XPath expression to exist.

Returns:
the request matcher
    ResponseMatcher exists();

    
Expects the XPath expression to not exist.

Returns:
the request matcher
    ResponseMatcher doesNotExist();

    
Expects the XPath expression to evaluate to the given boolean.

Parameters:
expectedValue the expected value
Returns:
the request matcher
    ResponseMatcher evaluatesTo(final boolean expectedValue);

    
Expects the XPath expression to evaluate to the given integer.

Parameters:
expectedValue the expected value
Returns:
the request matcher
    ResponseMatcher evaluatesTo(int expectedValue);

    
Expects the XPath expression to evaluate to the given double.

Parameters:
expectedValue the expected value
Returns:
the request matcher
    ResponseMatcher evaluatesTo(double expectedValue);

    
Expects the XPath expression to evaluate to the given string.

Parameters:
expectedValue the expected value
Returns:
the request matcher
    ResponseMatcher evaluatesTo(String expectedValue);
New to GrepCode? Check out our FAQ X