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 a date and a time joined with T to LocalDateTime

All 2 scenarios hold

Cell text converts automatically to the declared parameter type. There is no type converter to write.

Every table below reads the same way. An Input value column holds the text as written in the cell. A Parameter type column holds the type the text converts to. Expectation columns state observable properties of the object the test method receives. Each row therefore shows that the text became a valid object of that type, and not merely that it converted.

The test method signature fixes a parameter type, and no row can vary it. Each type therefore gets its own short table.

Each type here names a date or a time alone. None of them carries an offset from UTC or a time zone. None of them therefore fixes a point on the world timeline.

The expectation columns are themselves converted, to a LocalDate and a LocalTime.

expected outcome broken scenario
ScenarioInput valueParameter type?LocalDateTime date?LocalDateTime time?
Pi Day 20172017-03-14T12:34:56.789java.time.LocalDateTime2017-03-1412:34:56.789
Christmas night2025-12-25T23:59:59java.time.LocalDateTime2025-12-2523:59:59