Keyboard

↓ ↑
move between the rows you can see
→
open a feature, then step into it
←
close a feature, or step out to the one above
Enter
go to the page in focus
Tab
the same rows, plus everything else on the page
/
search the whole report
m
open or close the navigation drawer
Esc
leave the search box, or close the drawer
?
this list

Converts text through a String constructor or factory method

All 2 scenarios hold

A type with no built-in conversion of its own still converts. It needs a way to build itself from the cell text alone. The features under builtin hold the built-in conversions. This feature covers what happens when none of them applies.

Where no built-in conversion exists, TableTest uses a single-argument constructor on the target type, or a static factory method on it. It does the same inside a collection. Both custom date types here wrap the LocalDate in the expectation column.

expected outcome broken scenario
ScenarioConstructorFactory method in typeList with fallbackWrapped date?
A date in May2025-05-272025-05-27
  • 2025-05-27
2025-05-27
A leap day2024-02-292024-02-29
  • 2024-02-29
2024-02-29