Skip to content

Test: expand unit coverage for scalar converters in ConverterTest - #999

Open
leehaut wants to merge 1 commit into
apache:mainfrom
leehaut:test/expand-converter-unit-tests
Open

Test: expand unit coverage for scalar converters in ConverterTest#999
leehaut wants to merge 1 commit into
apache:mainfrom
leehaut:test/expand-converter-unit-tests

Conversation

@leehaut

@leehaut leehaut commented Aug 9, 2026

Copy link
Copy Markdown

Purpose of the pull request

Improve unit test coverage for individual scalar converter implementations.
ConverterTest previously only exercised FloatNumberConverter write conversion;
this change turns it into a focused @Tag(unit) suite covering the common
Boolean / Number / String converters.

What's changed?

  • Rewrite ConverterTest as pure unit tests (no Excel I/O / round-trip).
  • Add parameterized checks for supportJavaTypeKey() / supportExcelTypeKey() across 31 converters.
  • Cover read/write conversion for:
    • Boolean, Integer, Long, Short, Byte, Float, Double
    • BigDecimal, BigInteger
    • String (STRING / BOOLEAN / NUMBER / ERROR)
  • Keep factory method naming separate from the test method (supportKeysProvider) to avoid JUnit @MethodSource name clashes.

No functional changes are included in this PR.

Signed-off-by: lance <leehaut@gmail.com>
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