Build #547

Build: #547 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

and document create new note: Test case result

The below summarizes the result of the test " and document create new note" in build 547 of Spring REST docs - Publication - Default Job. View test case history
Description
and document create new note
Test class
com.example.ApiDocumentationSpec
Method
test and document create new note
Duration
< 1 sec
Status
Failed (New Failure)

Error Log

org.spockframework.runtime.ConditionFailedWithExceptionError: Condition failed with Exception:

given(this.documentationSpec) .accept(MediaType.APPLICATION_JSON.toString()) .contentType(MediaType.APPLICATION_JSON.toString()) .filter(document('notes-create-example', preprocessRequest(modifyUris() .host('api.example.com') .removePort()), preprocessResponse(prettyPrint()), requestFields( fieldWithPath('title').description('the title of the note'), fieldWithPath('body').description('the body of the note'), subsectionWithPath('tags').type(JsonFieldType.ARRAY).description('a list of tags associated to the note') ), responseFields( fieldWithPath('id').description('the id of the note'), fieldWithPath('title').description('the title of the note'), fieldWithPath('body').description('the body of the note'), subsectionWithPath('tags').type(JsonFieldType.ARRAY).description('the list of tags associated with the note') ))) .body('{ "body": "My test example", "title": "Eureka!", "tags": [{"name": "testing123"}] }') .when() .port(this.serverPort) .post('/notes') .then() .assertThat() .statusCode(is(201))
|     |    |                   |                |                |            |                     |                |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                  |      |                                                       |               |                   |                                  |                      |                                     |                     |                                    |                          |                  |      |                                                             |                                                                                            |       |    |    |            |
|     |    |                   |                application/json |            |                     application/json |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                  Array  |                                                       |               |                   |                                  |                      |                                     |                     |                                    |                          |                  Array  |                                                             io.restassured.internal.RequestSpecificationImpl@4a85e794                                    |       |    |    46597        java.lang.NoSuchMethodError: org.springframework.util.Assert.state(ZLjava/util/function/Supplier;)V
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   |                                  |                      |                                     |                     |                                    |                          |                         org.springframework.restdocs.payload.SubsectionDescriptor@5ae4f72                                                                                          |       |    com.example.ApiDocumentationSpec@123088c6
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   |                                  |                      |                                     |                     |                                    |                          org.springframework.restdocs.payload.SubsectionDescriptor@5ae4f72                                                                                                                    |       io.restassured.internal.RequestSpecificationImpl@4a85e794
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   |                                  |                      |                                     |                     |                                    org.springframework.restdocs.payload.SubsectionDescriptor@5ae4f72                                                                                                                                               io.restassured.internal.RequestSpecificationImpl@4a85e794
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   |                                  |                      |                                     |                     org.springframework.restdocs.payload.FieldDescriptor@44d150
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   |                                  |                      |                                     org.springframework.restdocs.payload.FieldDescriptor@44d150
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   |                                  |                      org.springframework.restdocs.payload.FieldDescriptor@1875ee78
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   |                                  org.springframework.restdocs.payload.FieldDescriptor@1875ee78
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   org.springframework.restdocs.payload.FieldDescriptor@7e30893
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               org.springframework.restdocs.payload.FieldDescriptor@7e30893
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       org.springframework.restdocs.payload.ResponseFieldsSnippet@1a9668c4
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         org.springframework.restdocs.payload.SubsectionDescriptor@3c449da3
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          org.springframework.restdocs.payload.SubsectionDescriptor@3c449da3
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    org.springframework.restdocs.payload.SubsectionDescriptor@3c449da3
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     org.springframework.restdocs.payload.FieldDescriptor@e723f68
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     org.springframework.restdocs.payload.FieldDescriptor@e723f68
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      org.springframework.restdocs.payload.FieldDescriptor@9405135
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              org.springframework.restdocs.payload.FieldDescriptor@9405135
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               org.springframework.restdocs.payload.RequestFieldsSnippet@c2129db
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  org.springframework.restdocs.operation.preprocess.ContentModifyingOperationPreprocessor@7b3927b2
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              org.springframework.restdocs.operation.preprocess.DelegatingOperationResponsePreprocessor@1e65c606
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@14406e59
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@14406e59
|     |    |                   |                                 |            |                                      |            |      |                                |                 org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@14406e59
|     |    |                   |                                 |            |                                      |            |      |                                org.springframework.restdocs.operation.preprocess.DelegatingOperationRequestPreprocessor@2a0a2af
|     |    |                   |                                 |            |                                      |            |      org.springframework.restdocs.restassured3.RestDocumentationFilter@2da743c0
|     |    |                   |                                 |            |                                      |            io.restassured.internal.RequestSpecificationImpl@4a85e794
|     |    |                   |                                 |            |                                      application/json
|     |    |                   |                                 |            io.restassured.internal.RequestSpecificationImpl@4a85e794
|     |    |                   |                                 application/json
|     |    |                   io.restassured.internal.RequestSpecificationImpl@4a85e794
|     |    io.restassured.internal.RequestSpecificationImpl@3549953c
|     com.example.ApiDocumentationSpec@123088c6
io.restassured.internal.RequestSpecificationImpl@4a85e794

Condition failed with Exception:

given(this.documentationSpec) .accept(MediaType.APPLICATION_JSON.toString()) .contentType(MediaType.APPLICATION_JSON.toString()) .filter(document('notes-create-example', preprocessRequest(modifyUris() .host('api.example.com') .removePort()), preprocessResponse(prettyPrint()), requestFields( fieldWithPath('title').description('the title of the note'), fieldWithPath('body').description('the body of the note'), subsectionWithPath('tags').type(JsonFieldType.ARRAY).description('a list of tags associated to the note') ), responseFields( fieldWithPath('id').description('the id of the note'), fieldWithPath('title').description('the title of the note'), fieldWithPath('body').description('the body of the note'), subsectionWithPath('tags').type(JsonFieldType.ARRAY).description('the list of tags associated with the note') ))) .body('{ "body": "My test example", "title": "Eureka!", "tags": [{"name": "testing123"}] }') .when() .port(this.serverPort) .post('/notes') .then() .assertThat() .statusCode(is(201))
|     |    |                   |                |                |            |                     |                |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                  |      |                                                       |               |                   |                                  |                      |                                     |                     |                                    |                          |                  |      |                                                             |                                                                                            |       |    |    |            |
|     |    |                   |                application/json |            |                     application/json |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                  Array  |                                                       |               |                   |                                  |                      |                                     |                     |                                    |                          |                  Array  |                                                             io.restassured.internal.RequestSpecificationImpl@4a85e794                                    |       |    |    46597        java.lang.NoSuchMethodError: org.springframework.util.Assert.state(ZLjava/util/function/Supplier;)V
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   |                                  |                      |                                     |                     |                                    |                          |                         org.springframework.restdocs.payload.SubsectionDescriptor@5ae4f72                                                                                          |       |    com.example.ApiDocumentationSpec@123088c6
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   |                                  |                      |                                     |                     |                                    |                          org.springframework.restdocs.payload.SubsectionDescriptor@5ae4f72                                                                                                                    |       io.restassured.internal.RequestSpecificationImpl@4a85e794
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   |                                  |                      |                                     |                     |                                    org.springframework.restdocs.payload.SubsectionDescriptor@5ae4f72                                                                                                                                               io.restassured.internal.RequestSpecificationImpl@4a85e794
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   |                                  |                      |                                     |                     org.springframework.restdocs.payload.FieldDescriptor@44d150
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   |                                  |                      |                                     org.springframework.restdocs.payload.FieldDescriptor@44d150
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   |                                  |                      org.springframework.restdocs.payload.FieldDescriptor@1875ee78
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   |                                  org.springframework.restdocs.payload.FieldDescriptor@1875ee78
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               |                   org.springframework.restdocs.payload.FieldDescriptor@7e30893
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       |               org.springframework.restdocs.payload.FieldDescriptor@7e30893
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         |                                                       org.springframework.restdocs.payload.ResponseFieldsSnippet@1a9668c4
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          |                         org.springframework.restdocs.payload.SubsectionDescriptor@3c449da3
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    |                          org.springframework.restdocs.payload.SubsectionDescriptor@3c449da3
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     |                                    org.springframework.restdocs.payload.SubsectionDescriptor@3c449da3
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     |                     org.springframework.restdocs.payload.FieldDescriptor@e723f68
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      |                                     org.springframework.restdocs.payload.FieldDescriptor@e723f68
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              |                      org.springframework.restdocs.payload.FieldDescriptor@9405135
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               |              org.springframework.restdocs.payload.FieldDescriptor@9405135
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  |               org.springframework.restdocs.payload.RequestFieldsSnippet@c2129db
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              |                  org.springframework.restdocs.operation.preprocess.ContentModifyingOperationPreprocessor@7b3927b2
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        |              org.springframework.restdocs.operation.preprocess.DelegatingOperationResponsePreprocessor@1e65c606
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             |                        org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@14406e59
|     |    |                   |                                 |            |                                      |            |      |                                |                 |             org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@14406e59
|     |    |                   |                                 |            |                                      |            |      |                                |                 org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@14406e59
|     |    |                   |                                 |            |                                      |            |      |                                org.springframework.restdocs.operation.preprocess.DelegatingOperationRequestPreprocessor@2a0a2af
|     |    |                   |                                 |            |                                      |            |      org.springframework.restdocs.restassured3.RestDocumentationFilter@2da743c0
|     |    |                   |                                 |            |                                      |            io.restassured.internal.RequestSpecificationImpl@4a85e794
|     |    |                   |                                 |            |                                      application/json
|     |    |                   |                                 |            io.restassured.internal.RequestSpecificationImpl@4a85e794
|     |    |                   |                                 application/json
|     |    |                   io.restassured.internal.RequestSpecificationImpl@4a85e794
|     |    io.restassured.internal.RequestSpecificationImpl@3549953c
|     com.example.ApiDocumentationSpec@123088c6
io.restassured.internal.RequestSpecificationImpl@4a85e794

	at com.example.ApiDocumentationSpec.$tt__$spock_feature_0_1(ApiDocumentationSpec.groovy:112)
	at com.example.ApiDocumentationSpec.test and document create new note_closure3(ApiDocumentationSpec.groovy)
	at groovy.lang.Closure.call(Closure.java:414)
	at groovy.lang.Closure.call(Closure.java:430)
	at grails.gorm.transactions.GrailsTransactionTemplate$1.doInTransaction(GrailsTransactionTemplate.groovy:68)
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
	at grails.gorm.transactions.GrailsTransactionTemplate.executeAndRollback(GrailsTransactionTemplate.groovy:65)
	at com.example.ApiDocumentationSpec.test and document create new note(ApiDocumentationSpec.groovy)
Caused by: java.lang.NoSuchMethodError: org.springframework.util.Assert.state(ZLjava/util/function/Supplier;)V
	at org.springframework.restdocs.restassured3.RestDocumentationFilter.retrieveConfiguration(RestDocumentationFilter.java:101)
	at org.springframework.restdocs.restassured3.RestDocumentationFilter.getConfiguration(RestDocumentationFilter.java:70)
	at org.springframework.restdocs.restassured3.RestDocumentationFilter.filter(RestDocumentationFilter.java:55)
	at io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72)
	at org.springframework.restdocs.restassured3.RestAssuredRestDocumentationConfigurer.filter(RestAssuredRestDocumentationConfigurer.java:72)
	at io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72)
	at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1722)
	at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1728)
	at io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy:172)
	at com.example.ApiDocumentationSpec.$tt__$spock_feature_0_1(ApiDocumentationSpec.groovy:104)
	... 7 more