Build #547

Build: #547 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

and document getting specific note: Test case result

The below summarizes the result of the test " and document getting specific note" in build 547 of Spring REST docs - Publication - Default Job. View test case history
Description
and document getting specific note
Test class
com.example.ApiDocumentationSpec
Method
test and document getting specific 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()) .filter(document('note-get-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/1') .then() .assertThat() .statusCode(is(200))
|     |    |                   |                |                |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  |                      |                                     |                     |                                    |                     |                  |      |                                                              |       |    |    |            |
|     |    |                   |                application/json |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  |                      |                                     |                     |                                    |                     |                  Array  org.springframework.restdocs.payload.FieldDescriptor@77a1f313  |       |    |    46597        java.lang.NoSuchMethodError: org.springframework.util.Assert.state(ZLjava/util/function/Supplier;)V
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  |                      |                                     |                     |                                    |                     org.springframework.restdocs.payload.FieldDescriptor@77a1f313                            |       |    com.example.ApiDocumentationSpec@e6cece1
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  |                      |                                     |                     |                                    org.springframework.restdocs.payload.FieldDescriptor@77a1f313                                                  |       io.restassured.internal.RequestSpecificationImpl@690a1df
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  |                      |                                     |                     org.springframework.restdocs.payload.FieldDescriptor@1a03b61f                                                                                       io.restassured.internal.RequestSpecificationImpl@690a1df
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  |                      |                                     org.springframework.restdocs.payload.FieldDescriptor@1a03b61f
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  |                      org.springframework.restdocs.payload.FieldDescriptor@1a0a86cc
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  org.springframework.restdocs.payload.FieldDescriptor@1a0a86cc
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               |                   org.springframework.restdocs.payload.FieldDescriptor@23af7abd
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               org.springframework.restdocs.payload.FieldDescriptor@23af7abd
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               org.springframework.restdocs.payload.ResponseFieldsSnippet@2f0305c8
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  org.springframework.restdocs.operation.preprocess.ContentModifyingOperationPreprocessor@675ceab8
|     |    |                   |                                 |            |      |                            |                 |             |                        |              org.springframework.restdocs.operation.preprocess.DelegatingOperationResponsePreprocessor@644131d5
|     |    |                   |                                 |            |      |                            |                 |             |                        org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@2fdd1e8e
|     |    |                   |                                 |            |      |                            |                 |             org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@2fdd1e8e
|     |    |                   |                                 |            |      |                            |                 org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@2fdd1e8e
|     |    |                   |                                 |            |      |                            org.springframework.restdocs.operation.preprocess.DelegatingOperationRequestPreprocessor@463ff470
|     |    |                   |                                 |            |      org.springframework.restdocs.restassured3.RestDocumentationFilter@61f1da02
|     |    |                   |                                 |            io.restassured.internal.RequestSpecificationImpl@690a1df
|     |    |                   |                                 application/json
|     |    |                   io.restassured.internal.RequestSpecificationImpl@690a1df
|     |    io.restassured.internal.RequestSpecificationImpl@21a01c4b
|     com.example.ApiDocumentationSpec@e6cece1
io.restassured.internal.RequestSpecificationImpl@690a1df

Condition failed with Exception:

given(this.documentationSpec) .accept(MediaType.APPLICATION_JSON.toString()) .filter(document('note-get-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/1') .then() .assertThat() .statusCode(is(200))
|     |    |                   |                |                |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  |                      |                                     |                     |                                    |                     |                  |      |                                                              |       |    |    |            |
|     |    |                   |                application/json |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  |                      |                                     |                     |                                    |                     |                  Array  org.springframework.restdocs.payload.FieldDescriptor@77a1f313  |       |    |    46597        java.lang.NoSuchMethodError: org.springframework.util.Assert.state(ZLjava/util/function/Supplier;)V
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  |                      |                                     |                     |                                    |                     org.springframework.restdocs.payload.FieldDescriptor@77a1f313                            |       |    com.example.ApiDocumentationSpec@e6cece1
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  |                      |                                     |                     |                                    org.springframework.restdocs.payload.FieldDescriptor@77a1f313                                                  |       io.restassured.internal.RequestSpecificationImpl@690a1df
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  |                      |                                     |                     org.springframework.restdocs.payload.FieldDescriptor@1a03b61f                                                                                       io.restassured.internal.RequestSpecificationImpl@690a1df
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  |                      |                                     org.springframework.restdocs.payload.FieldDescriptor@1a03b61f
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  |                      org.springframework.restdocs.payload.FieldDescriptor@1a0a86cc
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               |                   |                                  org.springframework.restdocs.payload.FieldDescriptor@1a0a86cc
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               |                   org.springframework.restdocs.payload.FieldDescriptor@23af7abd
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               |               org.springframework.restdocs.payload.FieldDescriptor@23af7abd
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  |               org.springframework.restdocs.payload.ResponseFieldsSnippet@2f0305c8
|     |    |                   |                                 |            |      |                            |                 |             |                        |              |                  org.springframework.restdocs.operation.preprocess.ContentModifyingOperationPreprocessor@675ceab8
|     |    |                   |                                 |            |      |                            |                 |             |                        |              org.springframework.restdocs.operation.preprocess.DelegatingOperationResponsePreprocessor@644131d5
|     |    |                   |                                 |            |      |                            |                 |             |                        org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@2fdd1e8e
|     |    |                   |                                 |            |      |                            |                 |             org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@2fdd1e8e
|     |    |                   |                                 |            |      |                            |                 org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor@2fdd1e8e
|     |    |                   |                                 |            |      |                            org.springframework.restdocs.operation.preprocess.DelegatingOperationRequestPreprocessor@463ff470
|     |    |                   |                                 |            |      org.springframework.restdocs.restassured3.RestDocumentationFilter@61f1da02
|     |    |                   |                                 |            io.restassured.internal.RequestSpecificationImpl@690a1df
|     |    |                   |                                 application/json
|     |    |                   io.restassured.internal.RequestSpecificationImpl@690a1df
|     |    io.restassured.internal.RequestSpecificationImpl@21a01c4b
|     com.example.ApiDocumentationSpec@e6cece1
io.restassured.internal.RequestSpecificationImpl@690a1df

	at com.example.ApiDocumentationSpec.$tt__$spock_feature_0_2(ApiDocumentationSpec.groovy:135)
	at com.example.ApiDocumentationSpec.test and document getting specific note_closure4(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 getting specific 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.get(RequestSpecificationImpl.groovy:168)
	at com.example.ApiDocumentationSpec.$tt__$spock_feature_0_2(ApiDocumentationSpec.groovy:128)
	... 7 more