Skip to content

Commit

Permalink
Actually added support for no_stat field.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckholt83 committed Mar 5, 2021
1 parent 70838eb commit 12e0104
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/smartystreets/api/us_street/Analysis.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ public class Analysis {
@Key("dpv_vacant")
private String vacant;

@Key("dpv_no_stat")
private String no_stat;

@Key("active")
private String active;

Expand Down Expand Up @@ -58,6 +61,8 @@ public String getVacant() {
return this.vacant;
}

public String getNo_stat() { return this.no_stat; }

public String getActive() {
return this.active;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public void testFullJSONDeserialization() throws Exception {
+ "\"dpv_footnotes\": \"AACCRR\",\n"
+ "\"dpv_cmra\": \"Y\",\n"
+ "\"dpv_vacant\": \"N\",\n"
+ "\"dpv_no_stat\": \"N\",\n"
+ "\"active\": \"Y\",\n"
+ "\"footnotes\": \"footnotes\",\n"
+ "\"lacslink_code\": \"lacslink_code\",\n"
Expand Down Expand Up @@ -133,6 +134,7 @@ public void testFullJSONDeserialization() throws Exception {
assertEquals("AACCRR", candidates[0].getAnalysis().getDpvFootnotes());
assertEquals("Y", candidates[0].getAnalysis().getCmra());
assertEquals("N", candidates[0].getAnalysis().getVacant());
assertEquals("N", candidates[0].getAnalysis().getNo_stat());
assertEquals("Y", candidates[0].getAnalysis().getActive());
assertEquals("footnotes", candidates[0].getAnalysis().getFootnotes());
assertEquals("lacslink_code", candidates[0].getAnalysis().getLacsLinkCode());
Expand Down

0 comments on commit 12e0104

Please sign in to comment.