diff --git a/app-api/src/main/java/com/project/reactdashboard/app/stock/StockController.java b/app-api/src/main/java/com/project/reactdashboard/app/stock/StockController.java index c136221..a6dac2a 100644 --- a/app-api/src/main/java/com/project/reactdashboard/app/stock/StockController.java +++ b/app-api/src/main/java/com/project/reactdashboard/app/stock/StockController.java @@ -1,8 +1,8 @@ package com.project.reactdashboard.app.stock; -import com.project.reactdashboard.domain.stock.model.StockDomain; +import com.project.reactdashboard.domain.stock.StockApi; import com.project.reactdashboard.domain.stock.mapper.StockDomainMapper; -import com.project.reactdashboard.domain.stock.StockService; +import com.project.reactdashboard.domain.stock.model.StockDomain; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; @@ -21,9 +21,9 @@ public class StockController { private final StockDomainMapper mapper; - private final StockService service; + private final StockApi service; - public StockController(StockDomainMapper mapper, StockService service) { + public StockController(StockDomainMapper mapper, StockApi service) { this.mapper = mapper; this.service = service; } diff --git a/app-api/src/test/java/com/project/reactdashboard/app/stock/StockControllerTest.java b/app-api/src/test/java/com/project/reactdashboard/app/stock/StockControllerTest.java index 699b442..b88c012 100644 --- a/app-api/src/test/java/com/project/reactdashboard/app/stock/StockControllerTest.java +++ b/app-api/src/test/java/com/project/reactdashboard/app/stock/StockControllerTest.java @@ -5,6 +5,7 @@ import com.fasterxml.jackson.databind.ObjectWriter; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; +import com.project.reactdashboard.domain.stock.StockApi; import com.project.reactdashboard.domain.stock.mapper.StockDomainMapper; import com.project.reactdashboard.domain.stock.StockService; import com.project.reactdashboard.domain.stock.model.StockDomain; @@ -36,7 +37,7 @@ public class StockControllerTest { private StockDomainMapper mapper; @Mock - private StockService service; + private StockApi service; @BeforeEach void setup() {