Skip to content

Commit

Permalink
Update MaxMindGeoLocationServiceTest.java
Browse files Browse the repository at this point in the history
Fixed indentation.
  • Loading branch information
JimTharioAmazon authored Mar 4, 2025
1 parent 1288f09 commit 2ec7db7
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,25 @@ public void lookupShouldReturnCountryIsoWhenDatabaseReaderWasSet() throws NoSuch
given(databaseReader.city(any())).willReturn(cityResponse);

new ReflectionMemberAccessor().set(
maxMindGeoLocationService.getClass().getDeclaredField("databaseReader"),
maxMindGeoLocationService,
databaseReader);
maxMindGeoLocationService.getClass().getDeclaredField("databaseReader"),
maxMindGeoLocationService,
databaseReader);

// when
final Future<GeoInfo> future = maxMindGeoLocationService.lookup(TEST_IP, null);

// then
assertThat(future.succeeded()).isTrue();
assertThat(future.result())
.isEqualTo(GeoInfo.builder()
.vendor("maxmind")
.continent("eu")
.country("fr")
.region("paris")
.city("Paris")
.lat(48.8566f)
.lon(2.3522f)
.build());
.isEqualTo(GeoInfo.builder()
.vendor("maxmind")
.continent("eu")
.country("fr")
.region("paris")
.city("Paris")
.lat(48.8566f)
.lon(2.3522f)
.build());
}

@Test
Expand Down

0 comments on commit 2ec7db7

Please sign in to comment.