Kotlin 1.9.10 官方文档 中文版
文档↗ 使用 Spring Boot 与 Kotlin 构建 web 应用程序——教程↗ 使用 Kotlin 协程与 RSocket 创建聊天应用程序 ——教程↗ 在 JVM 平台中用 JUnit 测试代码——教程 在项目中混用 Java 与 Kotlin——教程 在 Kotlin 中使用 Java 记录类型 从 Java 到 Kotlin 迁移指南 字符串 集合 可空性 库创建人指南 plugin will infer the corresponding platform dependencies for each test source set: kotlin-test-junit for JVM source sets, see automatic choice of a testing framework for Kotlin/JVM source sets kotlin-test-js the common source set. Gradle uses JUnit 4 by default. Therefore, the kotlin("test") dependency resolves to the variant for JUnit 4, namely kotlin-test-junit : 【Kotlin】 kotlin { sourceSets0 码力 | 3753 页 | 29.69 MB | 1 年前3
Kotlin Language Documentation 1.9.20CrudRepository for database access Update your application Run the application Next step Test code using JUnit in JVM – tutorial Add dependencies Add the code to test it Create a test Run a test What's next plugin will infer the corresponding platform dependencies for each test source set: kotlin-test-junit for JVM source sets, see automatic choice of a testing framework for Kotlin/JVM source sets kotlin-test-js in the common source set. Gradle uses JUnit 4 by default. Therefore, the kotlin("test") dependency resolves to the variant for JUnit 4, namely kotlin-test-junit: Kotlin kotlin { sourceSets {0 码力 | 1299 页 | 32.44 MB | 1 年前3
Kotlin 官方文档中文版 v1.9Kotlin 文档↗ 使用 Spring Boot 与 Kotlin 构建 web 应用程序——教程↗ 使用 Kotlin 协程与 RSocket 创建聊天应用程序——教程↗ 在 JVM 平台中用 JUnit 测试代码——教程 在项目中混用 Java 与 Kotlin——教程 在 Kotlin 中使用 Java 记录类型 从 Java 到 Kotlin 迁移指南 字符串 集合 可空性 库创建人指南 plugin will infer the corresponding platform dependencies for each test source set: kotlin-test-junit for JVM source sets, see automatic choice of a testing framework for Kotlin/JVM source sets kotlin-test-js in the common source set. Gradle uses JUnit 4 by default. Therefore, the kotlin("test") dependency resolves to the variant for JUnit 4, namely kotlin-test-junit : 【Kotlin】 kotlin { sourceSets0 码力 | 2049 页 | 45.06 MB | 1 年前3
Kotlin Language Documentation 1.3formatString(source: String, vararg args: Any) = String.format(source, *args) actual typealias Test = org.junit.Test The compiler ensures that every expected declaration has actual declarations in all platform compilations.test.defaultSourceSet { dependencies { implementation kotlin('test-junit') } } js().compilations.main.defaultSourceSet { /* ... */ } compilations["test"].defaultSourceSet { dependencies { implementation(kotlin("test-junit")) } } js().compilations["main"].defaultSourceSet { /* ... */0 码力 | 597 页 | 3.61 MB | 1 年前3
Kotlin 1.2 Language DocumentationformatString(source: String, vararg args: Any) = String.format(source, args) actual typealias Test = org.junit.Test The compiler ensures that every expected declaration has actual declarations in all platform 'org.jetbrains.kotlin:kotlin-test' implementation 'org.jetbrains.kotlin:kotlin-test-junit' } } jsMain { /* ... */ } jsTest { /* ... */ } mingwMain @Ignore / @BeforeTest / @AfterTest annotations in the common tests. For JVM targets, use kotlin-test-junit or kotlin-test-testng for the corresponding asserter implementation and annotations mapping. For0 码力 | 333 页 | 2.22 MB | 1 年前3
共 5 条
- 1













