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

Resolver-supplied parameters follow the table-bound parameters

All 2 scenarios hold

A JUnit parameter resolver supplies parameters such as TestInfo, TestReporter, and @TempDir. Those parameters can follow the table-bound parameters.

Where a resolver parameter is present, a scenario column needs @Scenario. Without it TableTest does not recognise the column.

The rule is the parameter order. The byte count is how a row proves it.

Each invocation writes its File content to a temporary directory that JUnit supplies, and then measures the file. A count that matches the content is possible only where the table's value reached the parameter the table names. It cannot come from one of the three parameters the resolvers fill after it.

JUnit resolves TestInfo, TestReporter and the temporary directory alongside, and the body asserts that each one arrived.

Two rows, and not one. An empty file writes no bytes, and that is also the count of a parameter that never received the cell.

expected outcome broken scenario
ScenarioFile contentFile size in bytes?
Content written to filehello5
Nothing written to file“”0