Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class Suggestion implements Serializable {

private String smartyKey;
private String entryId;
private String urbanization;
private String streetLine;
private String secondary;
private String city;
Expand All @@ -34,6 +35,8 @@ public String getEntryId() {
return entryId;
}

public String getUrbanization() { return urbanization; }

@JsonProperty("street_line")
public String getStreetLine() {
return streetLine;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

public class SuggestionTest {
private final SmartySerializer smartySerializer = new SmartySerializer();
private static final String responsePayload = "{\"suggestions\":[{\"smarty_key\":\"1\",\"entry_id\":\"2\",\"street_line\":\"3\",\"city\":\"4\",\"state\":\"5\",\"source\":\"6\"}]}";
private static final String responsePayload = "{\"suggestions\":[{\"smarty_key\":\"1\",\"entry_id\":\"2\",\"urbanization\":\"7\",\"street_line\":\"3\",\"city\":\"4\",\"state\":\"5\",\"source\":\"6\"}]}";

@Test
public void testAllFieldGetFilledInCorrectly() throws IOException {
Expand All @@ -20,6 +20,7 @@ public void testAllFieldGetFilledInCorrectly() throws IOException {
assertNotNull(result.getSuggestions()[0]);
assertEquals("1", result.getSuggestion(0).getSmartyKey());
assertEquals("2", result.getSuggestion(0).getEntryId());
assertEquals("7", result.getSuggestion(0).getUrbanization());
assertEquals("3", result.getSuggestion(0).getStreetLine());
assertEquals("4", result.getSuggestion(0).getCity());
assertEquals("5", result.getSuggestion(0).getState());
Expand Down