Build #547

Build: #547 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

and document notes list request: Test case result

The below summarizes the result of the test " and document notes list request" in build 547 of Spring REST docs - Publication - Default Job. View test case history
Description
and document notes list request
Test class
com.example.ApiDocumentationSpec
Method
test and document notes list request
Duration
7 secs
Status
Failed (New Failure)

Error Log

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

given(this.documentationSpec) .accept(MediaType.APPLICATION_JSON.toString()) .filter(document('notes-list-example', preprocessRequest(modifyUris() .host('api.example.com') .removePort()), preprocessResponse(prettyPrint()), 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'), fieldWithPath('[].tags').type(JsonFieldType.ARRAY).description('the list of tags associated with the note'), ))) .when() .port(this.serverPort) .get('/notes') .then() .assertThat() .statusCode(is(200))
|     |    |                   |                |                |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  |                         |                                     |                        |                                    |                        |                  |      |                                                              |       |    |    |            |
|     |    |                   |                application/json |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  |                         |                                     |                        |                                    |                        |                  Array  org.springframework.restdocs.payload.FieldDescriptor@5cc68da0  |       |    |    46597        java.lang.NoSuchMethodError: org.springframework.util.Assert.state(ZLjava/util/function/Supplier;)V
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  |                         |                                     |                        |                                    |                        org.springframework.restdocs.payload.FieldDescriptor@5cc68da0                            |       |    com.example.ApiDocumentationSpec@5ca4af6
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  |                         |                                     |                        |                                    org.springframework.restdocs.payload.FieldDescriptor@5cc68da0                                                     |       io.restassured.internal.RequestSpecificationImpl@adcee6b
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  |                         |                                     |                        org.springframework.restdocs.payload.FieldDescriptor@24efb788                                                                                          io.restassured.internal.RequestSpecificationImpl@adcee6b
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  |                         |                                     org.springframework.restdocs.payload.FieldDescriptor@24efb788
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  |                         org.springframework.restdocs.payload.FieldDescriptor@217fd942
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  org.springframework.restdocs.payload.FieldDescriptor@217fd942
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               |                      org.springframework.restdocs.payload.FieldDescriptor@eb2b3a6
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               org.springframework.restdocs.payload.FieldDescriptor@eb2b3a6
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               org.springframework.restdocs.payload.ResponseFieldsSnippet@47f22a1d
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  org.springframework.restdocs.operation.preprocess.ContentModifyingOperationPreprocessor@4869af9a
|     |    |                   |                                 |            |      |                              |                 |             |                        |              org.springframework.restdocs.operation.preprocess.DelegatingOperationResponsePreprocessor@25abaf4a
|     |    |                   |                                 |            |      |                              |                 |             |                        org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@22212263
|     |    |                   |                                 |            |      |                              |                 |             org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@22212263
|     |    |                   |                                 |            |      |                              |                 org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@22212263
|     |    |                   |                                 |            |      |                              org.springframework.restdocs.operation.preprocess.DelegatingOperationRequestPreprocessor@756b412b
|     |    |                   |                                 |            |      org.springframework.restdocs.restassured3.RestDocumentationFilter@18985e68
|     |    |                   |                                 |            io.restassured.internal.RequestSpecificationImpl@adcee6b
|     |    |                   |                                 application/json
|     |    |                   io.restassured.internal.RequestSpecificationImpl@adcee6b
|     |    io.restassured.internal.RequestSpecificationImpl@378157d3
|     com.example.ApiDocumentationSpec@5ca4af6
io.restassured.internal.RequestSpecificationImpl@adcee6b

Condition failed with Exception:

given(this.documentationSpec) .accept(MediaType.APPLICATION_JSON.toString()) .filter(document('notes-list-example', preprocessRequest(modifyUris() .host('api.example.com') .removePort()), preprocessResponse(prettyPrint()), 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'), fieldWithPath('[].tags').type(JsonFieldType.ARRAY).description('the list of tags associated with the note'), ))) .when() .port(this.serverPort) .get('/notes') .then() .assertThat() .statusCode(is(200))
|     |    |                   |                |                |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  |                         |                                     |                        |                                    |                        |                  |      |                                                              |       |    |    |            |
|     |    |                   |                application/json |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  |                         |                                     |                        |                                    |                        |                  Array  org.springframework.restdocs.payload.FieldDescriptor@5cc68da0  |       |    |    46597        java.lang.NoSuchMethodError: org.springframework.util.Assert.state(ZLjava/util/function/Supplier;)V
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  |                         |                                     |                        |                                    |                        org.springframework.restdocs.payload.FieldDescriptor@5cc68da0                            |       |    com.example.ApiDocumentationSpec@5ca4af6
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  |                         |                                     |                        |                                    org.springframework.restdocs.payload.FieldDescriptor@5cc68da0                                                     |       io.restassured.internal.RequestSpecificationImpl@adcee6b
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  |                         |                                     |                        org.springframework.restdocs.payload.FieldDescriptor@24efb788                                                                                          io.restassured.internal.RequestSpecificationImpl@adcee6b
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  |                         |                                     org.springframework.restdocs.payload.FieldDescriptor@24efb788
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  |                         org.springframework.restdocs.payload.FieldDescriptor@217fd942
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               |                      |                                  org.springframework.restdocs.payload.FieldDescriptor@217fd942
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               |                      org.springframework.restdocs.payload.FieldDescriptor@eb2b3a6
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               |               org.springframework.restdocs.payload.FieldDescriptor@eb2b3a6
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  |               org.springframework.restdocs.payload.ResponseFieldsSnippet@47f22a1d
|     |    |                   |                                 |            |      |                              |                 |             |                        |              |                  org.springframework.restdocs.operation.preprocess.ContentModifyingOperationPreprocessor@4869af9a
|     |    |                   |                                 |            |      |                              |                 |             |                        |              org.springframework.restdocs.operation.preprocess.DelegatingOperationResponsePreprocessor@25abaf4a
|     |    |                   |                                 |            |      |                              |                 |             |                        org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@22212263
|     |    |                   |                                 |            |      |                              |                 |             org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@22212263
|     |    |                   |                                 |            |      |                              |                 org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@22212263
|     |    |                   |                                 |            |      |                              org.springframework.restdocs.operation.preprocess.DelegatingOperationRequestPreprocessor@756b412b
|     |    |                   |                                 |            |      org.springframework.restdocs.restassured3.RestDocumentationFilter@18985e68
|     |    |                   |                                 |            io.restassured.internal.RequestSpecificationImpl@adcee6b
|     |    |                   |                                 application/json
|     |    |                   io.restassured.internal.RequestSpecificationImpl@adcee6b
|     |    io.restassured.internal.RequestSpecificationImpl@378157d3
|     com.example.ApiDocumentationSpec@5ca4af6
io.restassured.internal.RequestSpecificationImpl@adcee6b

	at com.example.ApiDocumentationSpec.$tt__$spock_feature_0_0(ApiDocumentationSpec.groovy:82)
	at com.example.ApiDocumentationSpec.test and document notes list request_closure2(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 notes list request(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.get(RequestSpecificationImpl.groovy:168)
	at com.example.ApiDocumentationSpec.$tt__$spock_feature_0_0(ApiDocumentationSpec.groovy:75)
	... 7 more