forked from loafle/openapi-generator-original
[bugfix][kotlin-wiremock] fix problems with range responses (#19309)
* [kotlin] Target correct library in jvm-spring-webclient sample * [kotlin] Fixed warning in jvm-spring-restclient * [kotlin-wiremock] fixed issue 7193 * [kotlin-wiremock] fixed wrong implementation of fromResponse * [kotlin-wiremock] forbidden API * [kotlin-wiremock] fixed wrong workflow trigger
This commit is contained in:
@@ -22,7 +22,7 @@ class TestAuthHttpBasicStubBuilder internal constructor(private val objectMapper
|
||||
* Let the stub for testAuthHttpBasic respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -39,6 +39,7 @@ class TestAuthHttpBasicStubBuilder internal constructor(private val objectMapper
|
||||
/**
|
||||
* Let the stub for testAuthHttpBasic respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
@@ -69,7 +70,7 @@ class TestAuthHttpBearerStubBuilder internal constructor(private val objectMappe
|
||||
* Let the stub for testAuthHttpBearer respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -86,6 +87,7 @@ class TestAuthHttpBearerStubBuilder internal constructor(private val objectMappe
|
||||
/**
|
||||
* Let the stub for testAuthHttpBearer respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
|
||||
@@ -22,7 +22,7 @@ class TestBinaryGifStubBuilder internal constructor(private val objectMapper: Ob
|
||||
* Let the stub for testBinaryGif respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -39,6 +39,7 @@ class TestBinaryGifStubBuilder internal constructor(private val objectMapper: Ob
|
||||
/**
|
||||
* Let the stub for testBinaryGif respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
@@ -69,7 +70,7 @@ class TestBodyApplicationOctetstreamBinaryStubBuilder internal constructor(priva
|
||||
* Let the stub for testBodyApplicationOctetstreamBinary respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -86,6 +87,7 @@ class TestBodyApplicationOctetstreamBinaryStubBuilder internal constructor(priva
|
||||
/**
|
||||
* Let the stub for testBodyApplicationOctetstreamBinary respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
@@ -116,7 +118,7 @@ class TestBodyMultipartFormdataArrayOfBinaryStubBuilder internal constructor(pri
|
||||
* Let the stub for testBodyMultipartFormdataArrayOfBinary respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -133,6 +135,7 @@ class TestBodyMultipartFormdataArrayOfBinaryStubBuilder internal constructor(pri
|
||||
/**
|
||||
* Let the stub for testBodyMultipartFormdataArrayOfBinary respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
@@ -163,7 +166,7 @@ class TestBodyMultipartFormdataSingleBinaryStubBuilder internal constructor(priv
|
||||
* Let the stub for testBodyMultipartFormdataSingleBinary respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -180,6 +183,7 @@ class TestBodyMultipartFormdataSingleBinaryStubBuilder internal constructor(priv
|
||||
/**
|
||||
* Let the stub for testBodyMultipartFormdataSingleBinary respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
@@ -210,7 +214,7 @@ class TestEchoBodyFreeFormObjectResponseStringStubBuilder internal constructor(p
|
||||
* Let the stub for testEchoBodyFreeFormObjectResponseString respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -227,6 +231,7 @@ class TestEchoBodyFreeFormObjectResponseStringStubBuilder internal constructor(p
|
||||
/**
|
||||
* Let the stub for testEchoBodyFreeFormObjectResponseString respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
@@ -257,7 +262,7 @@ class TestEchoBodyPetStubBuilder internal constructor(private val objectMapper:
|
||||
* Let the stub for testEchoBodyPet respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -274,6 +279,7 @@ class TestEchoBodyPetStubBuilder internal constructor(private val objectMapper:
|
||||
/**
|
||||
* Let the stub for testEchoBodyPet respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
@@ -304,7 +310,7 @@ class TestEchoBodyPetResponseStringStubBuilder internal constructor(private val
|
||||
* Let the stub for testEchoBodyPetResponseString respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -321,6 +327,7 @@ class TestEchoBodyPetResponseStringStubBuilder internal constructor(private val
|
||||
/**
|
||||
* Let the stub for testEchoBodyPetResponseString respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
@@ -351,7 +358,7 @@ class TestEchoBodyTagResponseStringStubBuilder internal constructor(private val
|
||||
* Let the stub for testEchoBodyTagResponseString respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -368,6 +375,7 @@ class TestEchoBodyTagResponseStringStubBuilder internal constructor(private val
|
||||
/**
|
||||
* Let the stub for testEchoBodyTagResponseString respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
|
||||
@@ -22,7 +22,7 @@ class TestFormIntegerBooleanStringStubBuilder internal constructor(private val o
|
||||
* Let the stub for testFormIntegerBooleanString respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -39,6 +39,7 @@ class TestFormIntegerBooleanStringStubBuilder internal constructor(private val o
|
||||
/**
|
||||
* Let the stub for testFormIntegerBooleanString respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
@@ -69,7 +70,7 @@ class TestFormOneofStubBuilder internal constructor(private val objectMapper: Ob
|
||||
* Let the stub for testFormOneof respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -86,6 +87,7 @@ class TestFormOneofStubBuilder internal constructor(private val objectMapper: Ob
|
||||
/**
|
||||
* Let the stub for testFormOneof respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
|
||||
@@ -22,7 +22,7 @@ class TestHeaderIntegerBooleanStringEnumsStubBuilder internal constructor(privat
|
||||
* Let the stub for testHeaderIntegerBooleanStringEnums respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -39,6 +39,7 @@ class TestHeaderIntegerBooleanStringEnumsStubBuilder internal constructor(privat
|
||||
/**
|
||||
* Let the stub for testHeaderIntegerBooleanStringEnums respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
|
||||
@@ -22,7 +22,7 @@ class TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStri
|
||||
* Let the stub for testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -39,6 +39,7 @@ class TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStri
|
||||
/**
|
||||
* Let the stub for testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
|
||||
@@ -22,7 +22,7 @@ class TestEnumRefStringStubBuilder internal constructor(private val objectMapper
|
||||
* Let the stub for testEnumRefString respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -39,6 +39,7 @@ class TestEnumRefStringStubBuilder internal constructor(private val objectMapper
|
||||
/**
|
||||
* Let the stub for testEnumRefString respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
@@ -69,7 +70,7 @@ class TestQueryDatetimeDateStringStubBuilder internal constructor(private val ob
|
||||
* Let the stub for testQueryDatetimeDateString respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -86,6 +87,7 @@ class TestQueryDatetimeDateStringStubBuilder internal constructor(private val ob
|
||||
/**
|
||||
* Let the stub for testQueryDatetimeDateString respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
@@ -116,7 +118,7 @@ class TestQueryIntegerBooleanStringStubBuilder internal constructor(private val
|
||||
* Let the stub for testQueryIntegerBooleanString respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -133,6 +135,7 @@ class TestQueryIntegerBooleanStringStubBuilder internal constructor(private val
|
||||
/**
|
||||
* Let the stub for testQueryIntegerBooleanString respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
@@ -163,7 +166,7 @@ class TestQueryStyleDeepObjectExplodeTrueObjectStubBuilder internal constructor(
|
||||
* Let the stub for testQueryStyleDeepObjectExplodeTrueObject respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -180,6 +183,7 @@ class TestQueryStyleDeepObjectExplodeTrueObjectStubBuilder internal constructor(
|
||||
/**
|
||||
* Let the stub for testQueryStyleDeepObjectExplodeTrueObject respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
@@ -210,7 +214,7 @@ class TestQueryStyleFormExplodeTrueArrayStringStubBuilder internal constructor(p
|
||||
* Let the stub for testQueryStyleFormExplodeTrueArrayString respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -227,6 +231,7 @@ class TestQueryStyleFormExplodeTrueArrayStringStubBuilder internal constructor(p
|
||||
/**
|
||||
* Let the stub for testQueryStyleFormExplodeTrueArrayString respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
@@ -257,7 +262,7 @@ class TestQueryStyleFormExplodeTrueObjectStubBuilder internal constructor(privat
|
||||
* Let the stub for testQueryStyleFormExplodeTrueObject respond with HTTP status code 200.
|
||||
*
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer fonfigurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
*/
|
||||
fun respondWith200(
|
||||
@@ -274,6 +279,7 @@ class TestQueryStyleFormExplodeTrueObjectStubBuilder internal constructor(privat
|
||||
/**
|
||||
* Let the stub for testQueryStyleFormExplodeTrueObject respond with HTTP status code [code].
|
||||
*
|
||||
* @param code the response code.
|
||||
* @param body response body for the [MappingBuilder].
|
||||
* @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
|
||||
* @return a [MappingBuilder] to be registered with a WireMock instance.
|
||||
|
||||
Reference in New Issue
Block a user