Skip to content

Commit

Permalink
refactored to multiline string
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangoerdes committed Nov 13, 2024
1 parent be5276f commit 0ff241c
Showing 1 changed file with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,20 @@ void setUp() {

static Stream<Arguments> createUserRequestProvider() {
return Stream.of(
Arguments.of("{\"email\": \"[email protected]\", \"createdAt\": \"2024-01-01T12:00:00Z\"}", 0),
Arguments.of("{\"email\": \"[email protected]\", \"id\": 123, \"createdAt\": \"2024-01-01T12:00:00Z\"}", 0),
Arguments.of("{}", 1),
Arguments.of("{\"email\": \"invalid-email\"}", 1),
Arguments.of("{\"email\": \"[email protected]\", \"createdAt\": \"not-a-datetime\"}", 1),
Arguments.of("{\"id\": 123}", 1),
Arguments.of("{\"email\": \"[email protected]\", \"id\": \"not-a-number\"}", 1)
Arguments.of("""
{"email": "[email protected]", "createdAt": "2024-01-01T12:00:00Z"}""", 0),
Arguments.of("""
{"email": "[email protected]", "id": 123, "createdAt": "2024-01-01T12:00:00Z"}""", 0),
Arguments.of("""
{}""", 1),
Arguments.of("""
{"email": "invalid-email"}""", 1),
Arguments.of("""
{"email": "[email protected]", "createdAt": "not-a-datetime"}""", 1),
Arguments.of("""
{"id": 123}""", 1),
Arguments.of("""
{"email": "[email protected]", "id": "not-a-number"}""", 1)
);
}

Expand Down

0 comments on commit 0ff241c

Please sign in to comment.