Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
06eb7e97
Commit
06eb7e97
authored
Aug 19, 2020
by
dreis2211
Committed by
Stephane Nicoll
Aug 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mention correct JUnit 5 annotations in Kotlin testing section
See gh-23002
parent
2a137a2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+1
-1
No files found.
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
06eb7e97
...
@@ -7813,7 +7813,7 @@ Note that some features (such as detecting the default value or deprecated items
...
@@ -7813,7 +7813,7 @@ Note that some features (such as detecting the default value or deprecated items
=== Testing
=== Testing
While it is possible to use JUnit 4 to test Kotlin code, JUnit 5 is provided by default and is recommended.
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.
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 `@Before
Class` and `@AfterClass
` annotations on non-static methods, which is a good fit for Kotlin.
This makes it possible to use `@Before
All` 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.
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`.
If you don't use it, exclude `org.junit.vintage:junit-vintage-engine`.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment