Merge branch '3.4.x'
Closes gh-45646
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2017 the original author or authors.
|
||||
* Copyright 2012-2025 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -99,7 +99,8 @@ inline fun <reified T : Any> TestRestTemplate.getForEntity(url: String, vararg u
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@Throws(RestClientException::class)
|
||||
inline fun <reified T : Any> TestRestTemplate.getForEntity(url: String, uriVariables: Map<String, *>): ResponseEntity<T> =
|
||||
inline fun <reified T : Any> TestRestTemplate.getForEntity(url: String,
|
||||
uriVariables: Map<String, *>): ResponseEntity<T> =
|
||||
getForEntity(url, T::class.java, uriVariables)
|
||||
|
||||
/**
|
||||
@@ -275,3 +276,4 @@ inline fun <reified T : Any> TestRestTemplate.exchange(url: URI, method: HttpMet
|
||||
@Throws(RestClientException::class)
|
||||
inline fun <reified T : Any> TestRestTemplate.exchange(requestEntity: RequestEntity<*>): ResponseEntity<T> =
|
||||
exchange(requestEntity, object : ParameterizedTypeReference<T>() {})
|
||||
|
||||
|
||||
@@ -10,3 +10,4 @@ fun main(args: Array<String>) {
|
||||
runApplication<KotlinApplicationWithMainThrowingException>(*args)
|
||||
throw IllegalStateException("ThrownFromMain")
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2025 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -48,4 +48,5 @@ class SpringBootContextLoaderKotlinTests {
|
||||
@SpringBootTest(classes = [KotlinApplicationWithMainThrowingException::class], useMainMethod = UseMainMethod.ALWAYS)
|
||||
internal class UseMainMethodAlwaysAndKotlinMainMethodThrowsException
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2025 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -262,3 +262,4 @@ class TestRestTemplateExtensionsTests {
|
||||
class Foo
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user