Spring WebFlux和Kotlin支持:如何做集成测试?

https://docs.spring.io/spring-framework/docs/5.0.0.BUILD-SNAPSHOT/spring-framework-reference/kotlin.html#easy-testing-kotlin-and-junit-5显示了一个代码示例一个集成测试。 不过我不明白这一行:

val application = Application(8181) 

8181应该是端口号。 但是Application从哪里来? 这是Spring Boot应用程序的应用程序类吗?

看看https://github.com/sdeleuze/spring-kotlin-functional/blob/master/src/test/kotlin/functional/IntegrationTests.kt

教程的代码包含在那里。 简而言之: Application是您的项目的一个类,但只需签出项目https://github.com/sdeleuze/spring-kotlin-functional