RTRReportResult.MockFlatlist

This class is used to create mock responses for the unit test execution.

The RTRReportResult.MockFlatlist class extends RTRReportResult.Flatlist.

The supported modifiers are global and virtual.

Method signatureDescriptionVersion
RTRReportResult.MockFlatlist​(List<RTRReportResult.MockFlatlistRow> rows)The constructor for creating mock responses for the unit test execution.
rows: List<RTRReportResult.MockFlatlistRow> . The list of MockFlatlistRow instances contained in MockFlatlist.
The mocked value is returned when the getRows method is executed on the FlatlistRowIterable instance.
60.0

To unit test a Flatlist component in, mock the resulting report data rows with the MockFlatlist and MockFlatlistRow classes.