Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion documentation/src/docs/asciidoc/link-attributes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ endif::[]
:Log4j: https://logging.apache.org/log4j/2.x/[Log4j]
:Log4j_JDK_Logging_Adapter: https://logging.apache.org/log4j/2.x/log4j-jul/index.html[Log4j JDK Logging Adapter]
:Logback: https://logback.qos.ch/[Logback]
:LogManager: https://docs.oracle.com/javase/8/docs/api/java/util/logging/LogManager.html[LogManager]
:LogManager: https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/LogManager.html[LogManager]
:Maven_Central: https://central.sonatype.com/[Maven Central]
:MockitoExtension: https://github.com/mockito/mockito/blob/release/2.x/subprojects/junit-jupiter/src/main/java/org/mockito/junit/jupiter/MockitoExtension.java[MockitoExtension]
:ServiceLoader: {jdk-javadoc-base-url}/java.base/java/util/ServiceLoader.html[ServiceLoader]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repository on GitHub.
[[release-notes-6.0.1-junit-platform-bug-fixes]]
==== Bug Fixes

*
* Remove remnants of Java 8 compatibility from User Guide.

[[release-notes-6.0.1-junit-platform-deprecations-and-breaking-changes]]
==== Deprecations and Breaking Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ option.
Please consult the manual of your build tool for the appropriate commands.

To analyze the recorded events, use the
https://docs.oracle.com/en/java/javase/14/docs/specs/man/jfr.html[jfr]
https://docs.oracle.com/en/java/javase/17/docs/specs/man/jfr.html[jfr]
command line tool shipped with recent JDKs or open the recording file with
https://jdk.java.net/jmc/[JDK Mission Control].

Expand Down
18 changes: 9 additions & 9 deletions documentation/src/docs/asciidoc/user-guide/writing-tests.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1749,9 +1749,9 @@ test class.
include::{testDir}/example/ParameterizedClassDemo.java[tags=constructor_injection]
----

If your programming language level you are using supports _records_ -- for example, Java
16 or higher -- you may use them to implement parameterized classes that avoid the
boilerplate code of declaring a test class constructor.
If your programming language you are using supports _records_ you may use them
to implement parameterized classes that avoid the boilerplate code of declaring
a test class constructor.

[source,java,indent=0]
----
Expand Down Expand Up @@ -2237,11 +2237,11 @@ by default. This behavior can be changed by setting the
| `@CsvSource(value = { " apple , banana" }, ignoreLeadingAndTrailingWhitespace = false)` | `" apple "`, `" banana"`
|===

If the programming language you are using supports _text blocks_ -- for example, Java SE
15 or higher -- you can alternatively use the `textBlock` attribute of `@CsvSource`. Each
record within a text block represents a CSV record and results in one invocation of the
parameterized class or test. The first record may optionally be used to supply CSV headers
by setting the `useHeadersInDisplayName` attribute to `true` as in the example below.
If the programming language you are using supports _text blocks_ you can alternatively use
the `textBlock` attribute of `@CsvSource`. Each record within a text block represents a
CSV record and results in one invocation of the parameterized class or test. The first record
may optionally be used to supply CSV headers by setting the `useHeadersInDisplayName` attribute
to `true` as in the example below.

Using a text block, the previous example can be implemented as follows.

Expand Down Expand Up @@ -2304,7 +2304,7 @@ void testWithCsvSource(String fruit, int rank) {

[NOTE]
====
Java's https://docs.oracle.com/en/java/javase/15/text-blocks/index.html[text block]
Java's https://docs.oracle.com/en/java/javase/17/text-blocks/index.html[text block]
feature automatically removes _incidental whitespace_ when the code is compiled.
However other JVM languages such as Groovy and Kotlin do not. Thus, if you are using a
programming language other than Java and your text block contains comments or new lines
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
* via this attribute or the {@link #value} attribute.
*
* <p>Text block syntax is supported by various languages on the JVM
* including Java SE 15 or higher. If text blocks are not supported, you
* including Java SE. If text blocks are not supported, you
* should declare your CSV content via the {@link #value} attribute.
*
* <p>Each record in the text block corresponds to a record in a CSV file and will
Expand All @@ -154,7 +154,7 @@
* input or on the following line, vertically aligned with the rest of the
* input (as can be seen in the example below).
*
* <p>Java's <a href="https://docs.oracle.com/en/java/javase/15/text-blocks/index.html">text block</a>
* <p>Java's <a href="https://docs.oracle.com/en/java/javase/17/text-blocks/index.html">text block</a>
* feature automatically removes <em>incidental whitespace</em> when the code
* is compiled. However, other JVM languages such as Groovy and Kotlin do not.
* Thus, if you are using a programming language other than Java and your text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public final class StringUtils {
* @see <a href="https://github.com/junit-team/junit-framework/issues/1800">#1800</a>
*/
static Pattern compileIsoControlPattern() {
// https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html#posix
// https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/regex/Pattern.html#posix
try {
// All of the characters that Unicode refers to as 'control characters'
return Pattern.compile("\\p{Cntrl}", UNICODE_CHARACTER_CLASS);
Expand Down