Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typo in Javadoc of ValidatableResponseOptions.java #1164

Merged
merged 1 commit into from
May 3, 2019

Commits on May 2, 2019

  1. Fixed typo in Javadoc of ValidatableResponseOptions.java

    The Javadoc of T header(String headerName, ResponseAwareMatcher<R> expectedValueMatcher) shows an example that does not compile:
    
    ```
    assertThat().header("Location", response -> response.endsWith("/x/") + response.path("id"));
    ```
    
    in fact, `endsWith` is not a method of response, it's an Hamcrest matcher. This small patch fixes the example in the Javadoc. I propose the fix according to one of the tests of REST Assured itself, https://github.com/rest-assured/rest-assured/blob/master/examples/rest-assured-itest-java/src/test/java/io/restassured/itest/java/HeaderITest.java#L220
    LorenzoBettini committed May 2, 2019
    Configuration menu
    Copy the full SHA
    5600b6a View commit details
    Browse the repository at this point in the history