Skip to content

Commit 24d152c

Browse files
committed
Convert sentence to tip in Kotlin testing chapter
This commit also moves the text to a more appropriate section of the chapter.
1 parent cc530d4 commit 24d152c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

framework-docs/modules/ROOT/pages/languages/kotlin/spring-projects-in.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,14 @@ This section addresses testing with the combination of Kotlin and Spring Framewo
322322
The recommended testing framework is https://junit.org/[JUnit] along with
323323
https://mockk.io/[Mockk] for mocking.
324324

325+
[TIP]
326+
====
327+
Kotlin lets you specify meaningful test function names between backticks (```).
328+
329+
For a concrete example, see the `+++`Find all users on HTML page`()+++` test function later
330+
in this section.
331+
====
332+
325333
NOTE: If you are using Spring Boot, see
326334
{spring-boot-docs-ref}/features/kotlin.html#features.kotlin.testing[this related documentation].
327335

@@ -352,7 +360,6 @@ file with a `spring.test.constructor.autowire.mode = all` property.
352360
[[per_class-lifecycle]]
353361
=== `PER_CLASS` Lifecycle
354362

355-
Kotlin lets you specify meaningful test function names between backticks (+++```+++).
356363
With JUnit Jupiter, Kotlin test classes can use the `@TestInstance(TestInstance.Lifecycle.PER_CLASS)`
357364
annotation to enable single instantiation of test classes, which allows the use of `@BeforeAll`
358365
and `@AfterAll` annotations on non-static methods, which is a good fit for Kotlin.

0 commit comments

Comments
 (0)