Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
6287630
Remove univocity-parsers license
vdmitrienko May 28, 2025
7d98380
Do not create a shadow jar from com.univocity
vdmitrienko May 28, 2025
aabcd60
Rework arguments providers to use FastCSV
vdmitrienko May 28, 2025
fd33e6f
test: Update expected root cause exceptions
vdmitrienko May 28, 2025
1dc063f
test: Update expected message on empty CSV
vdmitrienko May 28, 2025
b8efe07
test: Cover additional cases for empty values
vdmitrienko May 28, 2025
f62814c
Move "either value or textBlock" validation to getData(CsvSource)
vdmitrienko Jun 1, 2025
e768e7a
Deprecate CsvFileSource.lineSeparator as it's now detected automatically
vdmitrienko Jun 1, 2025
72ae172
test: Remove CsvFileSource.lineSeparator() usages
vdmitrienko Jun 1, 2025
c96e787
CsvReaderFactory: set "since" to 6.0
vdmitrienko Jun 1, 2025
3d3cadf
Preserve the original validation order
vdmitrienko Jun 1, 2025
b88e12d
Formatting
vdmitrienko Jun 1, 2025
cc7fd8c
ModularUserGuideTests: require de.siegmar.fastcsv module
vdmitrienko Jun 1, 2025
ff2691c
platform-tooling-support-tests: add FastCSV dependency
vdmitrienko Jun 1, 2025
cd3cc0e
Add release notes
vdmitrienko Jun 1, 2025
4eaba09
test: use CsvParseException import instead of a fully qualified name
vdmitrienko Jun 2, 2025
7661c96
Use condition() instead of creating PreconditionViolationException
vdmitrienko Jun 2, 2025
59effbb
Respect alphabetical order in libs.versions.toml
vdmitrienko Jun 3, 2025
bfe368c
Shadow FastCSV
vdmitrienko Jun 3, 2025
b913ee3
Remove the no longer used extraJavaModuleInfo plugin
vdmitrienko Jun 3, 2025
61350e4
Updates according to the recent changes in FastCSV snapshot
vdmitrienko Jun 3, 2025
0de1857
Merge branch 'refs/heads/main' into #4339-replace-univocity-parsers-w…
vdmitrienko Jun 7, 2025
43cd5c6
Avoid calling getFields() to prevent unnecessary object creation
vdmitrienko Jun 7, 2025
50acf31
Remove univocity.parsers module option from documentation.gradle.kts
vdmitrienko Jun 7, 2025
e2ac4f4
Set allowDuplicateHeaderFields explicitly to avoid relying on defaults
vdmitrienko Jun 7, 2025
62bddca
Set skipEmptyLines explicitly to avoid relying on defaults
vdmitrienko Jun 7, 2025
5884015
Move common reader settings to constants
vdmitrienko Jun 7, 2025
9cfea34
Remove no longer necessary testImplementation(libs.fastcsv) dependency
vdmitrienko Jun 7, 2025
1eea9e6
Resolve NULL_MARKER for headers
vdmitrienko Jun 7, 2025
2445030
Mention in release notes that annotation parameters now apply to headers
vdmitrienko Jun 7, 2025
ed6e8d4
Apply spotless
vdmitrienko Jun 7, 2025
954f548
Ignore shadowed classes in avoidAccessingStandardStreams() arch test
vdmitrienko Jun 7, 2025
2d62d8a
Avoid calling getHeader() to prevent unnecessary object creation
vdmitrienko Jun 8, 2025
cf704b3
Replace explicit variable types with var where appropriate
vdmitrienko Jun 8, 2025
70cfdbe
Rename fromDelegate() factory method to delegatingTo()
vdmitrienko Jun 8, 2025
0872858
Ignore empty lines in CsvSource.value()
vdmitrienko Jun 8, 2025
d5139e2
Copy FastCSV LICENSE file from dependency JAR
vdmitrienko Jun 8, 2025
375cd33
Move variable declarations outside loops to improve performance
vdmitrienko Jun 16, 2025
1e7e1ea
Retrieve headers and fields only once
vdmitrienko Jun 16, 2025
3f74e33
Minor polishing
vdmitrienko Jun 16, 2025
ea07055
Remove lineSeparator() since FastCSV detects it automatically
vdmitrienko Jun 22, 2025
05277d5
Merge branch 'refs/heads/main' into #4339-replace-univocity-parsers-w…
vdmitrienko Jun 22, 2025
28df2ee
Use Gradle task to extract FastCSV license
marcphilipp Jun 22, 2025
91c69b2
Merge remote-tracking branch 'origin/#4339-replace-univocity-parsers-…
vdmitrienko Jun 22, 2025
e4bcdd0
Only include FastCSV license once
marcphilipp Jun 22, 2025
696bde6
Replace locally built FastCSV snapshot with officially released version
vdmitrienko Jun 22, 2025
0f95d7f
Merge remote-tracking branch 'origin/#4339-replace-univocity-parsers-…
vdmitrienko Jun 22, 2025
63211eb
Polish release notes
vdmitrienko Jun 22, 2025
ac81c55
documentation: add reads for de.siegmar.fastcsv module
vdmitrienko Jun 22, 2025
d786894
Add module declaration
vdmitrienko Jun 22, 2025
328706a
Polish license handling
marcphilipp Jun 23, 2025
4044fd9
Include fastcsv license in junit-platform-console-standalone jar
marcphilipp Jun 23, 2025
bb7aaa8
Restore configuration cache compatibility
marcphilipp Jun 23, 2025
053b031
Restore validation of non-blankness of strings in `@CsvSource(value)`
marcphilipp Jun 23, 2025
c1858d7
Polish release notes
marcphilipp Jun 23, 2025
9aab4b5
Polishing
marcphilipp Jun 23, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,25 @@ repository on GitHub.
* The contracts for the `Executable` parameters of Kotlin-specific `assertTimeout`
functions were changed from `callsInPlace(executable, EXACTLY_ONCE)` to
`callsInPlace(executable, AT_MOST_ONCE)` which might result in compilation errors.
* The `CsvFileSource.lineSeparator()` parameter is deprecated because line separators
are now detected automatically during CSV parsing. This setting is no longer required
and will be ignored.
* As a result of migrating from
https://github.com/uniVocity/univocity-parsers[univocity-parsers] to
https://fastcsv.org/[FastCSV] for CSV input handling, the root causes and messages
of exceptions thrown when parsing malformed CSV input may differ in rare cases.
While overall parsing behavior remains consistent, this may affect
custom error handling that relies on specific exception types or messages.

[[release-notes-6.0.0-M1-junit-jupiter-new-features-and-improvements]]
==== New Features and Improvements

* Kotlin's `suspend` modifier may now be applied to test and lifecycle methods.
* The `Arguments` interface for parameterized tests is now officially a
`@FunctionalInterface`.
* CSV parsing for parameterized tests now uses the https://fastcsv.org/[FastCSV]
library instead of the no longer maintained
https://github.com/uniVocity/univocity-parsers[univocity-parsers].


[[release-notes-6.0.0-M1-junit-vintage]]
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ slf4j-julBinding = { module = "org.slf4j:slf4j-jdk14", version = "2.0.17" }
snapshotTests-junit5 = { module = "de.skuzzle.test:snapshot-tests-junit5", version.ref = "snapshotTests" }
snapshotTests-xml = { module = "de.skuzzle.test:snapshot-tests-xml", version.ref = "snapshotTests" }
spock1 = { module = "org.spockframework:spock-core", version = "1.3-groovy-2.5" }
univocity-parsers = { module = "com.sonofab1rd:univocity-parsers", version = "2.10.2" }
fastcsv = { module = "de.siegmar:fastcsv", version = "4.0.0-SNAPSHOT" }
xmlunit-assertj = { module = "org.xmlunit:xmlunit-assertj3", version.ref = "xmlunit" }
xmlunit-placeholders = { module = "org.xmlunit:xmlunit-placeholders", version.ref = "xmlunit" }
testingAnnotations = { module = "com.gradle:develocity-testing-annotations", version = "2.0.1" }
Expand Down
168 changes: 0 additions & 168 deletions junit-jupiter-params/LICENSE-univocity-parsers.md

This file was deleted.

18 changes: 5 additions & 13 deletions junit-jupiter-params/junit-jupiter-params.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies {
compileOnlyApi(libs.apiguardian)
compileOnly(libs.jspecify)

shadowed(libs.univocity.parsers)
implementation(libs.fastcsv)

compileOnly(kotlin("stdlib"))

Expand All @@ -29,7 +29,6 @@ dependencies {
}

extraJavaModuleInfo {
automaticModule(libs.univocity.parsers, "univocity.parsers")
failOnMissingModuleInfo = false
}

Expand All @@ -45,17 +44,10 @@ tasks {
""")
}
}
shadowJar {
relocate("com.univocity", "org.junit.jupiter.params.shadow.com.univocity")
from(projectDir) {
include("LICENSE-univocity-parsers.md")
into("META-INF")
}
}
compileJava {
options.compilerArgs.addAll(listOf(
"--add-modules", "univocity.parsers",
"--add-reads", "${javaModuleName}=univocity.parsers"
"--add-modules", "de.siegmar.fastcsv",
"--add-reads", "${javaModuleName}=de.siegmar.fastcsv"
))
}
compileJmhJava {
Expand All @@ -68,8 +60,8 @@ tasks {
}
javadoc {
(options as StandardJavadocDocletOptions).apply {
addStringOption("-add-modules", "univocity.parsers")
addStringOption("-add-reads", "${javaModuleName}=univocity.parsers")
addStringOption("-add-modules", "de.siegmar.fastcsv")
addStringOption("-add-reads", "${javaModuleName}=de.siegmar.fastcsv")
}
}
}
Loading
Loading