Skip to content

Commit

Permalink
Merge pull request #23002 from dreis2211
Browse files Browse the repository at this point in the history
* pr/23002:
  Mention correct JUnit 5 annotations in Kotlin testing section

Closes gh-23002
  • Loading branch information
snicoll committed Aug 19, 2020
2 parents 2a137a2 + 06eb7e9 commit 47e5db9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -7813,7 +7813,7 @@ Note that some features (such as detecting the default value or deprecated items
=== Testing
While it is possible to use JUnit 4 to test Kotlin code, JUnit 5 is provided by default and is recommended.
JUnit 5 enables a test class to be instantiated once and reused for all of the class's tests.
This makes it possible to use `@BeforeClass` and `@AfterClass` annotations on non-static methods, which is a good fit for Kotlin.
This makes it possible to use `@BeforeAll` and `@AfterAll` annotations on non-static methods, which is a good fit for Kotlin.

JUnit 5 is the default and the vintage engine is provided for backward compatibility with JUnit 4.
If you don't use it, exclude `org.junit.vintage:junit-vintage-engine`.
Expand Down

0 comments on commit 47e5db9

Please sign in to comment.