Treating C addresses as valid

This commit is contained in:
Nick Goupinets 2021-04-28 15:31:34 -04:00
parent ae1c26afea
commit 4050c42bf4
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ public class LoquateAddressValidator extends BaseRestfulValidator {
protected boolean isValid(JsonNode theMatch) { protected boolean isValid(JsonNode theMatch) {
String addressQualityIndex = getField(theMatch, LOQUATE_AQI); String addressQualityIndex = getField(theMatch, LOQUATE_AQI);
return "A".equals(addressQualityIndex) || "B".equals(addressQualityIndex); return "A".equals(addressQualityIndex) || "B".equals(addressQualityIndex) || "C".equals(addressQualityIndex);
} }
private String getField(JsonNode theMatch, String theFieldName) { private String getField(JsonNode theMatch, String theFieldName) {

View File

@ -63,7 +63,7 @@ class LoquateAddressValidatorTest {
" },\n" + " },\n" +
" \"Matches\": [\n" + " \"Matches\": [\n" +
" {\n" + " {\n" +
" \"AQI\": \"C\",\n" + " \"AQI\": \"D\",\n" +
" \"Address\": \"\"\n" + " \"Address\": \"\"\n" +
" }\n" + " }\n" +
" ]\n" + " ]\n" +