Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
minor mods to #42 test; won't fail without fix, but will display erro…
Browse files Browse the repository at this point in the history
…rs at least
  • Loading branch information
cowtowncoder committed Sep 30, 2014
1 parent c0087cb commit e5b06cf
Showing 1 changed file with 22 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,34 @@ static class JsonAddress extends Resource<JsonAddress> {
public final String line2;
public final String city;
public final String zipCode;


// Note: missing last 2 fields, to trigger problem
@JsonCreator
public JsonAddress(@JsonProperty("id") long id,
@JsonProperty("line1") String line1,
@JsonProperty("line2") String line2,
@JsonProperty("city") String city,
@JsonProperty("state") String state,
@JsonProperty("zipCode") String zipCode,
@JsonProperty("locale") String locale,
@JsonProperty("timezone") String timezone)
@JsonProperty("zipCode") String zipCode)
{
this.id = id;
this.line1 = line1;
this.line2 = line2;
this.city = city;
this.state = state;
this.zipCode = zipCode;
this.locale = null;
this.timezone = null;
}

public JsonAddress(long id,
String line1,
String line2,
String city,
String state,
String zipCode,
String locale,
String timezone)
{
this.id = id;
this.line1 = line1;
Expand Down

0 comments on commit e5b06cf

Please sign in to comment.