Skip to content

Commit

Permalink
fix: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Angular2Guy committed Nov 26, 2024
1 parent 4c23d10 commit e143b0b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

import javax.sql.DataSource;

import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.test.context.bean.override.mockito.MockitoBean;

import ch.xxx.manager.adapter.repository.JpaAppUserRepository;
import ch.xxx.manager.adapter.repository.JpaCurrencyRepository;
Expand All @@ -39,50 +39,50 @@
import jakarta.persistence.EntityManager;

public class BaseControllerTest {
@MockBean
@MockitoBean
protected AppUserServiceDb appUserServiceDb;
@MockBean
@MockitoBean
protected SymbolService symbolService;
@MockBean
@MockitoBean
protected FinancialDataService financialDataService;
@MockBean
@MockitoBean
protected QuoteService quoteService;
@MockBean
@MockitoBean
protected QuoteImportService quoteImportService;
@MockBean
@MockitoBean
protected PortfolioToIndexService portfolioToIndexService;
@MockBean
@MockitoBean
protected CurrencyService currencyService;
@MockBean
@MockitoBean
protected SymbolImportService symbolImportService;
@MockBean
@MockitoBean
protected KafkaTemplate kafkaTemplate;

@MockBean
@MockitoBean
protected JpaAppUserRepository jpaAppUserRepository;
@MockBean
@MockitoBean
protected JpaCurrencyRepository jpaCurrencyRepository;
@MockBean
@MockitoBean
protected JpaDailyQuoteRepository jpaDailyQuoteRepository;
@MockBean
@MockitoBean
protected JpaFinancialElementRepository jpaFinancialElementRepository;
@MockBean
@MockitoBean
protected JpaPortfolioElementRepository jpaPortfolioElementRepository;
@MockBean
@MockitoBean
protected JpaPortfolioRepository jpaPortfolioRepository;
@MockBean
@MockitoBean
protected JpaPortfolioToSymbolRepository jpaPortfolioToSymbolRepository;
@MockBean
@MockitoBean
protected JpaRevokedTokenRepository jpaRevokedTokenRepository;
@MockBean
@MockitoBean
protected JpaSectorRepository jpaSectorRepository;
@MockBean
@MockitoBean
protected JpaSymbolFinancialsRepository jpaSymbolFinancialsRepository;
@MockBean
@MockitoBean
protected EntityManager entityManager;
@MockBean
@MockitoBean
protected JpaSymbolRepository jpaSymbolRepository;
@MockBean
@MockitoBean
protected DataSource dataSource;

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
import org.mockito.Mockito;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.FilterType;
import org.springframework.test.context.aot.DisabledInAotMode;
import org.springframework.test.context.bean.override.mockito.MockitoBean;
import org.springframework.test.util.ReflectionTestUtils;
import org.springframework.test.web.servlet.MockMvc;

Expand All @@ -55,9 +55,9 @@ public class PortfolioControllerTest extends BaseControllerTest {
+ "CRSLpttN9dMqam85wSRjhoKDz-_QWAjbUMptwFlskNa_8vZ-DvwwnkcvbEfBSvVJSUt8_4ZrWpBq1tX56PTOobbI-oXasUk-meYdD2tLDvErmPXC"
+ "ntTSqGB7c4jcoPT3IX1mUsNZp5hYPUWpZjXDSmx2Os1JhY2ezTJJBpMq0o559aSJPs1rkqH1zEFrYDs41-mFTujaIrxv4iC8wGsXqvixamg9mC0P8n"
+ "645McBJ6Q3X0PElFGbF6gmKtvrOqpQHA==";
@MockBean
@MockitoBean
private PortfolioService portfolioService;
@MockBean
@MockitoBean
private JwtTokenService jwtTokenService;
@Autowired
private MockMvc mockMvc;
Expand Down

0 comments on commit e143b0b

Please sign in to comment.