Add Kotlin snippets for six User Guide sections#5432
Merged
marcphilipp merged 1 commit intojunit-team:mainfrom Mar 9, 2026
Merged
Add Kotlin snippets for six User Guide sections#5432marcphilipp merged 1 commit intojunit-team:mainfrom
marcphilipp merged 1 commit intojunit-team:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
marcphilipp
reviewed
Mar 6, 2026
Member
marcphilipp
left a comment
There was a problem hiding this comment.
Thank you for the PR! I left a few comments/questions inline.
documentation/src/test/kotlin/example/kotlin/exception/ExceptionAssertionExactDemo.kt
Outdated
Show resolved
Hide resolved
- Add Kotlin examples for Nested Tests documentation - Add Kotlin examples for Dynamic Tests documentation - Add Kotlin examples for Assumptions documentation - Add Kotlin examples for Exception Handling documentation - Add Kotlin examples for Repeated Tests documentation - Add Kotlin examples for Test Classes and Methods documentation - Wrap existing Java code blocks in tabbed snippets (Java/Kotlin) --------- Signed-off-by: Anton.Yalyshev <yalishev.ant@gmail.com>
2ef4afc to
da2d5bd
Compare
✅ All tests passed ✅🏷️ Commit: da2d5bd Learn more about TestLens at testlens.app. |
Contributor
Author
|
Thanks for the review! I've addressed all the comments:
By the way - was six pages a reasonable scope for one PR, or would you prefer smaller/larger batches going forward? |
Member
I think that's a good size. If you'd prefer slightly larger to reduce the time you have to wait for my reviews, I'd be fine with that, though. |
marcphilipp
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Kotlin tabbed code snippets to six more User Guide sections,
continuing the effort started in #5316.
Pages updated:
Each Java code block is wrapped in
[tabs]with a correspondingKotlin example that mirrors the same test logic using idiomatic
Kotlin: property access, string templates, reified generics,
trailing lambdas,
companion object+@JvmStaticfor lifecyclemethods, etc.
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
Method preconditions are checked(N/A — documentation only)Public API has Javadoc and(N/A — documentation only)@APIannotations