Fix unit test

This commit is contained in:
Gabriele C 2018-08-26 19:23:15 +02:00
parent da7e7edc37
commit 22623aac85

View File

@ -79,7 +79,7 @@ public class GeoIpServiceTest {
String result = geoIpService.getCountryCode(ip);
// then
assertThat(result, equalTo("--"));
assertThat(result, equalTo("LOCALHOST"));
verify(lookupService, never()).getCountry(any());
}
@ -113,7 +113,7 @@ public class GeoIpServiceTest {
String result = geoIpService.getCountryName(ip.getHostAddress());
// then
assertThat(result, equalTo("N/A"));
assertThat(result, equalTo("LocalHost"));
verify(lookupService, never()).getCountry(ip);
}
}