You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 00f74f0
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: openapi-processor-core/src/test/kotlin/io/openapiprocessor/core/writer/java/MethodWriterResponseStyleSpec.kt
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ class MethodWriterResponseStyleSpec: FreeSpec() {
62
62
}
63
63
64
64
// when:
65
-
val imports = writer(options).write(target, endpoint, endpoint.endpointResponses.first())
65
+
val imports = writer(options).write(target, endpoint, endpoint.firstSuccessResponse)
66
66
67
67
// then:
68
68
target.toString() shouldBe
@@ -102,7 +102,7 @@ class MethodWriterResponseStyleSpec: FreeSpec() {
102
102
}
103
103
104
104
// when:
105
-
val imports = writer(options).write (target, endpoint, endpoint.endpointResponses.first ())
105
+
val imports = writer(options).write (target, endpoint, endpoint.firstSuccessResponse)
106
106
107
107
// then:
108
108
target.toString() shouldBe
@@ -147,7 +147,7 @@ class MethodWriterResponseStyleSpec: FreeSpec() {
147
147
}
148
148
149
149
// when:
150
-
val imports = writer(options).write(target, endpoint, endpoint.endpointResponses.first())
150
+
val imports = writer(options).write(target, endpoint, endpoint.firstSuccessResponse)
151
151
152
152
// then:
153
153
target.toString() shouldBe
@@ -180,7 +180,7 @@ class MethodWriterResponseStyleSpec: FreeSpec() {
180
180
}
181
181
182
182
// when:
183
-
val imports = writer().write(target, endpoint, endpoint.endpointResponses.first())
183
+
val imports = writer().write(target, endpoint, endpoint.firstSuccessResponse)
184
184
185
185
// then:
186
186
target.toString() shouldBe
@@ -219,7 +219,7 @@ class MethodWriterResponseStyleSpec: FreeSpec() {
219
219
}
220
220
221
221
// when:
222
-
val imports = writer().write(target, endpoint, endpoint.endpointResponses.first())
222
+
val imports = writer().write(target, endpoint, endpoint.firstSuccessResponse)
0 commit comments