Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakubnabrdalik/951e1a02ca8572d296b90baabcc65a66 to your computer and use it in GitHub Desktop.
Save jakubnabrdalik/951e1a02ca8572d296b90baabcc65a66 to your computer and use it in GitHub Desktop.
org.springframework.cloud.contract.spec.Contract.make {
request {
method 'GET'
url $(client(regex('/api/articles/.*')), server(execute('getArticleId()')))
}
@jakubnabrdalik
Copy link
Author

//WYNIK generacji
def validate_shouldFetchArticle() throws Exception {
given:
def request = given()
.header('Content-Type', 'application/json;charset=UTF-8')

    when:
        def response = given().spec(request)
                .get("org.springframework.cloud.contract.spec.internal.ExecutionProperty@26d445e9")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment