Class
caplin.chart.testing

ChartServiceStub

A stub service for the caplin.chart.service.StreamLinkChartService service.

Constructor Summary

Attributes Name and Description
caplin.chart.testing.ChartServiceStub()

Method Summary

Attributes Name and Description
void discard( seriesRequest, listener)

void reset()

Allow tests to reinitialize the stub

void retrieve( seriesRequest, listener)

void setHistoricSeriesResponseData(String subject, Array data)

Allow tests to set the series test data.

void setRealtimeSeriesResponseData(String subject, Array data)

Allow tests to set the series test data.

Constructor Detail

caplin.chart.testing.ChartServiceStub()

Method Detail

void discard( seriesRequest, listener)

Parameters
seriesRequest
listener
See
caplin.chart.service.StreamLinkChartService#discard

void reset()

Allow tests to reinitialize the stub

void retrieve( seriesRequest, listener)

Parameters
seriesRequest
listener
See
caplin.chart.service.StreamLinkChartService#retrieve

void setHistoricSeriesResponseData(String subject, Array data)

Allow tests to set the series test data.

Parameters
String subject The subject
Array data The series data

void setRealtimeSeriesResponseData(String subject, Array data)

Allow tests to set the series test data.

Parameters
String subject The subject
Array data The series data