Skip to content

Instantly share code, notes, and snippets.

Created June 21, 2023 20:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
class MethodSourceCase2ExampleTest {
@DisplayName("Payment status")
@ParameterizedTest(name = "The payment with status {0} returns the message {1}")
void paymentStatus(Status status, String message) {
String auditedPayment = auditService.getPayments(status);
static Stream<Arguments> statusList() {
return Stream.of(
Arguments.arguments(STATUS_PROCESSING, "The payment is being processed."),
Arguments.arguments(STATUS_PENDING, "The payment is pending."),
Arguments.arguments(STATUS_APPROVED, "The payment is approved."),
Arguments.arguments(STATUS_FAILED, "The payment failed.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment