Skip to content

Commit 94d05f0

Browse files
committed
extract empty response
1 parent 8f82f04 commit 94d05f0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/test/groovy/com/github/hauner/openapi/spring/writer/java/MethodWriterSpec.groovy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616

1717
package com.github.hauner.openapi.spring.writer.java
1818

19-
import com.github.hauner.openapi.core.test.EmptyResponse
19+
import com.github.hauner.openapi.core.model.Response
20+
import com.github.hauner.openapi.core.model.datatypes.NoneDataType
2021
import com.github.hauner.openapi.core.writer.java.MethodWriter
2122
import com.github.hauner.openapi.core.converter.ApiOptions
2223
import com.github.hauner.openapi.core.model.Endpoint
@@ -42,7 +43,7 @@ class MethodWriterSpec extends Specification {
4243

4344
void "writes map from single query parameter" () {
4445
def endpoint = createEndpoint (path: '/foo', method: HttpMethod.GET, responses: [
45-
'204': [new EmptyResponse ()]
46+
'204': [new Response (responseType: new NoneDataType())]
4647
], parameters: [
4748
new QueryParameter(name: 'foo', required: false, dataType: new MappedMapDataType (
4849
type: 'Map',

0 commit comments

Comments
 (0)