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) {
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) {

View File

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