Skip to content

Commit

Permalink
Added premisePrefixNumber to international components.
Browse files Browse the repository at this point in the history
  • Loading branch information
MouaYing committed Apr 23, 2018
1 parent 7681b0a commit 326103e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public class Components {
@Key("premise_number")
private String premiseNumber;

@Key("premise_prefix_number")
private String premisePrefixNumber;

@Key("premise_type")
private String premiseType;

Expand Down Expand Up @@ -182,6 +185,10 @@ public String getPremiseNumber() {
return premiseNumber;
}

public String getPremisePrefixNumber() {
return premisePrefixNumber;
}

public String getPremiseType() {
return premiseType;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public void testAllFieldsFilledCorrectly() throws IOException {
"\"administrative_area\":\"16\",\"sub_administrative_area\":\"17\",\"dependent_locality\":\"18\"," +
"\"dependent_locality_name\":\"19\",\"double_dependent_locality\":\"20\",\"locality\":\"21\"," +
"\"postal_code\":\"22\",\"postal_code_short\":\"23\",\"postal_code_extra\":\"24\"," +
"\"premise\":\"25\",\"premise_extra\":\"26\",\"premise_number\":\"27\",\"premise_type\":\"28\"," +
"\"premise\":\"25\",\"premise_extra\":\"26\",\"premise_number\":\"27\",\"premise_prefix_number\":\"27.5\"," +
"\"premise_type\":\"28\"," +
"\"thoroughfare\":\"29\",\"thoroughfare_predirection\":\"30\",\"thoroughfare_postdirection\":\"31\"," +
"\"thoroughfare_name\":\"32\",\"thoroughfare_trailing_type\":\"33\",\"thoroughfare_type\":\"34\"," +
"\"dependent_thoroughfare\":\"35\",\"dependent_thoroughfare_predirection\":\"36\"," +
Expand Down Expand Up @@ -67,6 +68,7 @@ public void testAllFieldsFilledCorrectly() throws IOException {
assertEquals("25", components.getPremise());
assertEquals("26", components.getPremiseExtra());
assertEquals("27", components.getPremiseNumber());
assertEquals("27.5", components.getPremisePrefixNumber());
assertEquals("28", components.getPremiseType());
assertEquals("29", components.getThoroughfare());
assertEquals("30", components.getThoroughfarePredirection());
Expand Down

0 comments on commit 326103e

Please sign in to comment.