@@ -1749,9 +1749,8 @@ test class.
17491749include::{testDir}/example/ParameterizedClassDemo.java[tags=constructor_injection]
17501750----
17511751
1752- If your programming language level you are using supports _records_ -- for example, Java
1753- 16 or higher -- you may use them to implement parameterized classes that avoid the
1754- boilerplate code of declaring a test class constructor.
1752+ You may use _records_ to implement parameterized classes that avoid the boilerplate code
1753+ of declaring a test class constructor.
17551754
17561755[source,java,indent=0]
17571756----
@@ -2237,11 +2236,12 @@ by default. This behavior can be changed by setting the
22372236| `@CsvSource(value = { " apple , banana" }, ignoreLeadingAndTrailingWhitespace = false)` | `" apple "`, `" banana"`
22382237|===
22392238
2240- If the programming language you are using supports _text blocks_ -- for example, Java SE
2241- 15 or higher -- you can alternatively use the `textBlock` attribute of `@CsvSource`. Each
2242- record within a text block represents a CSV record and results in one invocation of the
2243- parameterized class or test. The first record may optionally be used to supply CSV headers
2244- by setting the `useHeadersInDisplayName` attribute to `true` as in the example below.
2239+ If the programming language you are using supports Java _text blocks_ or equivalent
2240+ multi-line string literals, you can alternatively use the `textBlock` attribute of
2241+ `@CsvSource`. Each record within a text block represents a CSV record and results in one
2242+ invocation of the parameterized class or test. The first record may optionally be used to
2243+ supply CSV headers by setting the `useHeadersInDisplayName` attribute to `true` as in the
2244+ example below.
22452245
22462246Using a text block, the previous example can be implemented as follows.
22472247
@@ -2304,7 +2304,7 @@ void testWithCsvSource(String fruit, int rank) {
23042304
23052305[NOTE]
23062306====
2307- Java's https://docs.oracle.com/en/java/javase/15 /text-blocks/index.html[text block]
2307+ Java's https://docs.oracle.com/en/java/javase/17 /text-blocks/index.html[text block]
23082308feature automatically removes _incidental whitespace_ when the code is compiled.
23092309However other JVM languages such as Groovy and Kotlin do not. Thus, if you are using a
23102310programming language other than Java and your text block contains comments or new lines
0 commit comments