Skip to content

Conversation

@EricW123
Copy link

@EricW123 EricW123 commented Nov 8, 2025

Refs #676

This PR refactors RemoveHyphenatedNewlinesFormatterTest, TrimWhitespaceFormatterTest, UnicodeConverterTest and UnitsToLatexFormatterTest to use parameterized tests (@CsvSource and @valuesource) following the one-assertion-per-test guideline.

Note: My classmates are also contributing to this issue.

@espertusnu

How to test:

./gradlew :jablib:test \
    --tests org.jabref.logic.formatter.bibtexfields.TrimWhitespaceFormatterTest \
    --tests org.jabref.logic.formatter.bibtexfields.UnicodeConverterTest \
    --tests org.jabref.logic.formatter.bibtexfields.UnitsToLatexFormatterTest \
    --tests org.jabref.logic.formatter.bibtexfields.RemoveHyphenatedNewlinesFormatterTest

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.

1 participant