Skip to content

Commit fd36d1e

Browse files
author
Stephane Maldini
committed
Use explicit expectError(class.java) instead of reactor kotlin extension
1 parent 3f8be34 commit fd36d1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import org.springframework.web.reactive.result.method.InvocableHandlerMethod
3535
import org.springframework.web.reactive.result.method.annotation.ContinuationHandlerMethodArgumentResolver
3636
import reactor.core.publisher.Mono
3737
import reactor.test.StepVerifier
38-
import reactor.test.expectError
3938
import java.lang.reflect.Method
4039
import kotlin.reflect.jvm.javaMethod
4140

@@ -74,7 +73,7 @@ class KotlinInvocableHandlerMethodTests {
7473
val result = invoke(CoroutinesController(), method)
7574

7675
StepVerifier.create(result)
77-
.consumeNextWith { StepVerifier.create(it.returnValue as Mono<*>).expectError(IllegalStateException::class).verify() }
76+
.consumeNextWith { StepVerifier.create(it.returnValue as Mono<*>).expectError(IllegalStateException::class.java).verify() }
7877
.verifyComplete()
7978
}
8079

0 commit comments

Comments
 (0)