Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Test
run: |-
export TERM=${TERM:-dumb}
./gradlew test
./gradlew test --debug
# test build
- name: Build with Gradle
run: ./gradlew build
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/com/gocardless/GoCardlessClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void shouldCreateACustomer() throws Exception {
http.enqueueResponse(201, "fixtures/client/create_a_customer_response.json");
Customer customer = client.customers().create().withHeader("Accept-Language", "fr-FR")
.withFamilyName("Osborne").withGivenName("Sharon").withAddressLine1("27 Acer Road")
.withAddressLine2("Apt 2").withCity("London").withPostalCode("E8 3GX")
.withAddressLine2("Apt 2").withCity("London").withPostalCode("E8 3GX").withEmail("[email protected]")
.withCountryCode("GB").execute();
assertThat(customer.getId()).isNotNull();
assertThat(customer.getFamilyName()).isEqualTo("Osborne");
Expand All @@ -122,7 +122,7 @@ public void shouldCreateACustomer() throws Exception {
public void shouldCreateACustomerWithAGeneratedIdempotencyKey() throws Exception {
http.enqueueResponse(201, "fixtures/client/create_a_customer_response.json");
CustomerCreateRequest request = client.customers().create()
.withHeader("Accept-Language", "fr-FR").withFamilyName("Osborne")
.withHeader("Accept-Language", "fr-FR").withFamilyName("Osborne").withEmail("[email protected]")
.withGivenName("Sharon").withAddressLine1("27 Acer Road").withAddressLine2("Apt 2")
.withCity("London").withPostalCode("E8 3GX").withCountryCode("GB");
request.execute();
Expand All @@ -139,7 +139,7 @@ public void shouldHandleConflictWhenCreatingACustomer() throws Exception {
http.enqueueResponse(409, "fixtures/conflict.json");
http.enqueueResponse(200, "fixtures/client/create_a_customer_response.json");
CustomerCreateRequest request = client.customers().create()
.withHeader("Accept-Language", "fr-FR").withFamilyName("Osborne")
.withHeader("Accept-Language", "fr-FR").withFamilyName("Osborne").withEmail("[email protected]")
.withGivenName("Sharon").withAddressLine1("27 Acer Road").withAddressLine2("Apt 2")
.withCity("London").withPostalCode("E8 3GX").withCountryCode("GB");
request.execute();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"address_line2": "Apt 2",
"city": "London",
"country_code": "GB",
"email": "[email protected]",
"family_name": "Osborne",
"given_name": "Sharon",
"postal_code": "E8 3GX"
Expand Down