getForObject

inline fun <T : Any> TestRestTemplate.getForObject(url: String, vararg uriVariables: Any): T?
inline fun <T : Any> TestRestTemplate.getForObject(url: String, uriVariables: Map<String, Any?>): T?
inline fun <T : Any> TestRestTemplate.getForObject(url: URI): T?

Extension for TestRestTemplate.getForObject providing a getForObject<Foo>(...) variant leveraging Kotlin reified type parameters. Like the original Java method, this extension is subject to type erasure. Use exchange if you need to retain actual generic type arguments.

Author

Sebastien Deleuze

Since

2.0.0