You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Business workflows may be expressed in terms of hours, days, weeks or months.
Doing integration tests in thoses conditions are impossible.
We must provide a way to allow a library user to configuer Swiffer to transform durations to a unit testable time scale.
Each duration passed to Swiffer should be transformed internally using a DurationTransformer before being passed to SWF.
This include:
Default implementation is a noop: it just return the request duration.
Another implementation is provided: TestingDurationTransformer with public methods and convenient to use:
public void setDurationOfADay(Duration dayDuration);
The implementation should be provided only during construction of the Swiffer instance.
The text was updated successfully, but these errors were encountered:
Business workflows may be expressed in terms of hours, days, weeks or months.
Doing integration tests in thoses conditions are impossible.
We must provide a way to allow a library user to configuer Swiffer to transform durations to a unit testable time scale.
Each duration passed to Swiffer should be transformed internally using a DurationTransformer before being passed to SWF.
This include:
Expected interface:
Default implementation is a noop: it just return the request duration.
Another implementation is provided: TestingDurationTransformer with public methods and convenient to use:
public void setDurationOfADay(Duration dayDuration);
The implementation should be provided only during construction of the Swiffer instance.
The text was updated successfully, but these errors were encountered: