Skip to content

GH-5889: Fix CsvSource parsing in TikaDocumentReaderTests#5890

Open
rodolfo-mendes wants to merge 1 commit intospring-projects:mainfrom
rodolfo-mendes:GH-5889
Open

GH-5889: Fix CsvSource parsing in TikaDocumentReaderTests#5890
rodolfo-mendes wants to merge 1 commit intospring-projects:mainfrom
rodolfo-mendes:GH-5889

Conversation

@rodolfo-mendes
Copy link
Copy Markdown

Fixes TikaDocumentReaderTests parameterized test data that included commas in contentSnipped values.

Previously, rows that relied on the default @CsvSource separator could misparse snippet values containing commas, causing the test to assert against truncated content.

This change updates the parameterized test input to use a non-comma delimiter so the full snippet text is preserved.

Affected file:

  • document-readers/tika-reader/src/test/java/org/springframework/ai/reader/tika/TikaDocumentReaderTests.java

Closes #5889

…DocumentReaderTests`, so `contentSnipped` values containing commas are not broke.

Closes spring-projects#5889

Signed-off-by: Rodolfo Mendes <rodolfo.m.s.mendes@gmail.com>
@rodolfo-mendes rodolfo-mendes changed the title Fix CsvSource parsing in TikaDocumentReaderTests GH-5889: Fix CsvSource parsing in TikaDocumentReaderTests Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TikaDocumentReaderTests misparses CsvSource values containing commas in contentSnipped

1 participant