Enable kotlin route DSL (#2825)
* Add kotlin-maven-plugin to server module * Add reactor-kotlin-extensions dependency * Enable RouteDslTests.kt * Enable kotlin compile and test case of kotlin route
This commit is contained in:
@@ -101,7 +101,7 @@ import static org.junit.Assume.assumeThat;
|
||||
org.springframework.cloud.gateway.route.RouteTests.class,
|
||||
org.springframework.cloud.gateway.route.CachingRouteLocatorTests.class,
|
||||
org.springframework.cloud.gateway.route.RouteRefreshListenerTests.class,
|
||||
// org.springframework.cloud.gateway.route.builder.RouteDslTests.class,
|
||||
org.springframework.cloud.gateway.route.builder.RouteDslTests.class,
|
||||
org.springframework.cloud.gateway.route.builder.RouteBuilderTests.class,
|
||||
org.springframework.cloud.gateway.route.builder.GatewayFilterSpecTests.class,
|
||||
org.springframework.cloud.gateway.route.CachingRouteDefinitionLocatorTests.class,
|
||||
|
||||
@@ -24,13 +24,12 @@ import org.springframework.cloud.gateway.support.ServerWebExchangeUtils
|
||||
import org.springframework.context.annotation.Configuration
|
||||
import org.springframework.mock.http.server.reactive.MockServerHttpRequest
|
||||
import org.springframework.mock.web.server.MockServerWebExchange
|
||||
import org.springframework.test.context.junit4.SpringRunner
|
||||
import org.springframework.web.server.ServerWebExchange
|
||||
import reactor.core.publisher.toMono
|
||||
import reactor.kotlin.core.publisher.toMono
|
||||
import reactor.test.StepVerifier
|
||||
import java.net.URI
|
||||
|
||||
@SpringBootTest(classes = arrayOf(Config::class))
|
||||
@SpringBootTest(classes = [Config::class])
|
||||
class RouteDslTests {
|
||||
|
||||
@Autowired
|
||||
|
||||
Reference in New Issue
Block a user