API Usage Examples
This is an index of usage examples of the API, with the aim of demonstrating what you can do as a learning aid.
All of these examples were generated from real tests, so you can be confident that the usage shown is up to date.
BusinessFlow
HappyPath
- HappyPath<Happy, Sad> happyAttempt(Attempt<Happy>)
- HappyPath<Happy, Sad> happyAttempt(Attempt<Happy>, Exception, Sad>)
- HappyPath<Happy, Sad> happyPath(Happy)
- HappyPath<Happy, Sad> happyPathAttempt(BusinessFlow<Happy, Sad>>)
- HappyPath<NewHappy, Sad> map(Mapping<Happy, NewHappy>)
- HappyPath<Happy, Sad> sadPath(Sad)
- HappyPath<Happy, Sad> technicalFailure(Exception)