Skip to content

Commit

Permalink
make zip field of account string for european countries (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-exceed authored Jun 2, 2021
1 parent 0ed368f commit 6f90634
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class Account {
private String city;
private String state;
private String territory;
private Integer zip;
private String zip;
private String country;
private String phone;
private String fax;
Expand Down Expand Up @@ -96,7 +96,7 @@ public String getTerritory() {
return territory;
}

public Integer getZip() {
public String getZip() {
return zip;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void testRead() throws IOException {
assertEquals("Has correct city", "Atlanta", account.getCity());
assertEquals("Has correct state", "GA", account.getState());
assertEquals("Has correct territory", "Test Territory", account.getTerritory());
assertEquals("Has correct zipcode", 30064, (int) account.getZip());
assertEquals("Has correct zipcode", "30064", account.getZip());
assertEquals("Has correct country", "United States", account.getCountry());
assertEquals("Has correct phone", "123-456-4789", account.getPhone());
assertEquals("Has correct createdAt", "2016-01-04T10:39:26.000Z", account.getCreatedAt().toString());
Expand Down

0 comments on commit 6f90634

Please sign in to comment.