Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
b9a0e6bb
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b9a0e6bb
编写于
10月 27, 2017
作者:
S
Sebastien Deleuze
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update documentation about WebTestClient Kotlin issue
Issue: SPR-16057
上级
419b4440
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
23 addition
and
0 deletion
+23
-0
spring-test/src/main/java/org/springframework/test/web/reactive/server/WebTestClient.java
...ringframework/test/web/reactive/server/WebTestClient.java
+7
-0
src/docs/asciidoc/languages/kotlin.adoc
src/docs/asciidoc/languages/kotlin.adoc
+12
-0
src/docs/asciidoc/testing-webtestclient.adoc
src/docs/asciidoc/testing-webtestclient.adoc
+4
-0
未找到文件。
spring-test/src/main/java/org/springframework/test/web/reactive/server/WebTestClient.java
浏览文件 @
b9a0e6bb
...
...
@@ -66,6 +66,13 @@ import org.springframework.web.util.UriBuilderFactory;
*
* <p>See the static {@code bindToXxx} entry points for creating an instance.
*
* <p><strong>Warning</strong>: {@code WebTestClient} is not usable yet in Kotlin due to a
* <a href="https://youtrack.jetbrains.com/issue/KT-5464">type inference issue</a> which is
* expected to be fixed as of Kotlin 1.3. You can watch
* <a href="https://jira.spring.io/browse/SPR-16057">SPR-16057</a> for up-to-date information.
* Meanwhile, the proposed alternative is to use directly {@link WebClient} with its Reactor
* and Spring Kotlin extensions to perform integration tests on an embedded WebFlux server.
*
* @author Rossen Stoyanchev
* @since 5.0
*/
...
...
src/docs/asciidoc/languages/kotlin.adoc
浏览文件 @
b9a0e6bb
...
...
@@ -654,6 +654,17 @@ class SpecificationLikeTests {
----
[[kotlin-webtestclient-issue]]
==== `WebTestClient` type inference issue in Kotlin
`WebTestClient` is not usable yet in Kotlin due to a
https://youtrack.jetbrains.com/issue/KT-5464[type inference issue] which is
expected to be fixed as of Kotlin 1.3. You can watch
https://jira.spring.io/browse/SPR-16057[SPR-16057] for up-to-date information. Meanwhile,
the proposed alternative is to use directly `WebClient` with its Reactor and Spring Kotlin
extensions to perform integration tests on an embedded WebFlux server.
[[kotlin-getting-started]]
...
...
@@ -729,6 +740,7 @@ Here is a list of pending issues related to Spring + Kotlin support.
==== Spring Framework
* https://jira.spring.io/browse/SPR-16057[Unable to use WebTestClient with mock server in Kotlin]
* https://jira.spring.io/browse/SPR-15413[Add support for Kotlin coroutines]
...
...
src/docs/asciidoc/testing-webtestclient.adoc
浏览文件 @
b9a0e6bb
...
...
@@ -8,6 +8,10 @@ to any server over an HTTP connection. It can also bind directly to WebFlux appl
with <<testing.adoc#mock-objects-web-reactive,mock request and response>> objects,
without the need for an HTTP server.
[NOTE]
====
`WebTestClient` is not usable yet in Kotlin, see <<languages.adoc#kotlin-webtestclient-issue, this section>> for more details.
====
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录