@Test public void singleFundingSourceSuccess() {
PaymentRobot payment = new PaymentRobot();
ResultRobot result = payment
.amount(42_00)
.recipient("
[email protected]")
.send();
result.isSuccess();
}A
@Test public void singleFundingSourceTooMuch() {
PaymentRobot payment = new PaymentRobot();
ResultRobot result = payment
.amount(1_000_000_00)
.recipient("
[email protected]")
.send();
result.isSuccess();
}B
@Test public void singleFundingSourceInsufficientFunds() {
PaymentRobot payment = new PaymentRobot();
ResultRobot result = payment
.amount(1_000_00)
.recipient("
[email protected]")
.send();
result.isSuccess();
}C
@Test public void networkErrorAllowsRetry() {
// ...
}
@Test public void multipleFundingSourcesSuccess() {
// ...
}
@Test public void multipleFundingSourcesOneDisabled() {
// ...
}
@Test public void multipleFundingSourcesInsufficientUsesOther() {
// ...
}
@Test public void multipleFundingSourcesAllInsufficient() {
// ...
}
@Test public void unauthenticatedLogsOut() {
// ...
}
@Test public void rotationRetainsAmountAndRecipient() {
// ...
}
@Test public void serverErrorShowsTryAgainLater() {
// ...
}