Browse Source

Use explicit expectError(class.java) instead of reactor kotlin extension

pull/22911/head
Stephane Maldini 7 years ago
parent
commit
fd36d1efe6
  1. 3
      spring-webflux/src/test/kotlin/org/springframework/web/reactive/result/KotlinInvocableHandlerMethodTests.kt

3
spring-webflux/src/test/kotlin/org/springframework/web/reactive/result/KotlinInvocableHandlerMethodTests.kt

@ -35,7 +35,6 @@ import org.springframework.web.reactive.result.method.InvocableHandlerMethod @@ -35,7 +35,6 @@ import org.springframework.web.reactive.result.method.InvocableHandlerMethod
import org.springframework.web.reactive.result.method.annotation.ContinuationHandlerMethodArgumentResolver
import reactor.core.publisher.Mono
import reactor.test.StepVerifier
import reactor.test.expectError
import java.lang.reflect.Method
import kotlin.reflect.jvm.javaMethod
@ -74,7 +73,7 @@ class KotlinInvocableHandlerMethodTests { @@ -74,7 +73,7 @@ class KotlinInvocableHandlerMethodTests {
val result = invoke(CoroutinesController(), method)
StepVerifier.create(result)
.consumeNextWith { StepVerifier.create(it.returnValue as Mono<*>).expectError(IllegalStateException::class).verify() }
.consumeNextWith { StepVerifier.create(it.returnValue as Mono<*>).expectError(IllegalStateException::class.java).verify() }
.verifyComplete()
}

Loading…
Cancel
Save