diff --git a/src/main/java/com/dnd/runus/infrastructure/weather/openweathermap/OpenweathermapWeatherHttpClient.java b/src/main/java/com/dnd/runus/infrastructure/weather/openweathermap/OpenweathermapWeatherHttpClient.java index a8af0482..93cec9b3 100644 --- a/src/main/java/com/dnd/runus/infrastructure/weather/openweathermap/OpenweathermapWeatherHttpClient.java +++ b/src/main/java/com/dnd/runus/infrastructure/weather/openweathermap/OpenweathermapWeatherHttpClient.java @@ -8,8 +8,8 @@ public interface OpenweathermapWeatherHttpClient { @GetExchange("/data/2.5/weather") OpenweathermapWeatherInfo getWeatherInfo( - @RequestParam("lon") double lon, - @RequestParam("lat") double lat, - @RequestParam String unit, + @RequestParam("lon") double longitude, + @RequestParam("lat") double latitude, + @RequestParam("units") String unit, @RequestParam("appid") String appId); } diff --git a/src/test/java/com/dnd/runus/infrastructure/weather/openweathermap/OpenweathermapWeatherHttpClientTest.java b/src/test/java/com/dnd/runus/infrastructure/weather/openweathermap/OpenweathermapWeatherHttpClientTest.java index 335dba81..b2f91869 100644 --- a/src/test/java/com/dnd/runus/infrastructure/weather/openweathermap/OpenweathermapWeatherHttpClientTest.java +++ b/src/test/java/com/dnd/runus/infrastructure/weather/openweathermap/OpenweathermapWeatherHttpClientTest.java @@ -81,7 +81,7 @@ void getWeatherInfo() { + " \"name\": \"Seoul\"," + " \"cod\": 200" + "}"); - stubFor(get(urlEqualTo("/data/2.5/weather?lon=126.978&lat=37.5665&unit=metric&appid=test")) + stubFor(get(urlEqualTo("/data/2.5/weather?lon=126.978&lat=37.5665&units=metric&appid=test")) .willReturn(aResponse() .withHeader(CONTENT_TYPE, APPLICATION_JSON.getMimeType()) .withResponseBody(body)));