RTRReportResult.MockScoreCard

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

The RTRReportResult.MockScoreCard class extends RTRReportResult.ScoreCard.

The supported modifiers are global and virtual.

Method signatureDescriptionVersion
RTRReportResult.MockScoreCard​(Map<String, Decimal> kpiValues)The constructor for creating mock responses for the unit test execution.
kpiValues: Map<String, Decimal> . A map of a KPI name to a decimal value.
The mocked value is returned when the getValue method is executed.
60.0

To unit test a scorecard component, mock the scorecard values using the MockScoreCard class.