Skip to content

Commit

Permalink
Fix stockApi use
Browse files Browse the repository at this point in the history
  • Loading branch information
hdescottes committed Jan 14, 2024
1 parent f28039a commit 0c4a7d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -36,7 +37,7 @@ public class StockControllerTest {
private StockDomainMapper mapper;

@Mock
private StockService service;
private StockApi service;

@BeforeEach
void setup() {
Expand Down

0 comments on commit 0c4a7d3

Please sign in to comment.