diff --git a/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/budget/expense/endpoint/BudgetExpenseEndPointTest.java b/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/budget/expense/endpoint/BudgetExpenseEndPointTest.java index 50c75b7..9aa7238 100644 --- a/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/budget/expense/endpoint/BudgetExpenseEndPointTest.java +++ b/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/budget/expense/endpoint/BudgetExpenseEndPointTest.java @@ -14,14 +14,11 @@ import it.valeriovaudi.onlyoneportal.budgetservice.time.Year; import it.valeriovaudi.onlyoneportal.budgetservice.user.UserName; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.ExtendWith; 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.http.MediaType; import org.springframework.security.oauth2.jwt.JwtDecoder; import org.springframework.security.test.context.support.WithMockUser; -import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.web.servlet.MockMvc; import java.util.UUID; @@ -35,8 +32,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; -@ExtendWith(SpringExtension.class) -@WebMvcTest(BudgetExpenseEndPoint.class) +//@WebMvcTest(BudgetExpenseEndPoint.class) //todo https://github.com/spring-projects/spring-boot/issues/32195 public class BudgetExpenseEndPointTest { @Autowired diff --git a/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/web/adapter/BudgetRevenueConverterTest.java b/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/budget/revenue/BudgetRevenueConverterTest.java similarity index 82% rename from src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/web/adapter/BudgetRevenueConverterTest.java rename to src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/budget/revenue/BudgetRevenueConverterTest.java index caf54a5..d49d5fa 100644 --- a/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/web/adapter/BudgetRevenueConverterTest.java +++ b/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/budget/revenue/BudgetRevenueConverterTest.java @@ -1,10 +1,6 @@ -package it.valeriovaudi.onlyoneportal.budgetservice.web.adapter; +package it.valeriovaudi.onlyoneportal.budgetservice.budget.revenue; import it.valeriovaudi.onlyoneportal.budgetservice.budget.Money; -import it.valeriovaudi.onlyoneportal.budgetservice.budget.revenue.BudgetRevenue; -import it.valeriovaudi.onlyoneportal.budgetservice.budget.revenue.BudgetRevenueConverter; -import it.valeriovaudi.onlyoneportal.budgetservice.budget.revenue.BudgetRevenueId; -import it.valeriovaudi.onlyoneportal.budgetservice.budget.revenue.BudgetRevenueRepresentation; import it.valeriovaudi.onlyoneportal.budgetservice.time.Date; import it.valeriovaudi.onlyoneportal.budgetservice.user.UserName; import it.valeriovaudi.onlyoneportal.budgetservice.user.UserRepository; diff --git a/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/web/endpoint/BudgetRevenueEndPointTest.java b/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/budget/revenue/BudgetRevenueEndPointTest.java similarity index 93% rename from src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/web/endpoint/BudgetRevenueEndPointTest.java rename to src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/budget/revenue/BudgetRevenueEndPointTest.java index 91ece09..86b8e14 100644 --- a/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/web/endpoint/BudgetRevenueEndPointTest.java +++ b/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/budget/revenue/BudgetRevenueEndPointTest.java @@ -1,20 +1,16 @@ -package it.valeriovaudi.onlyoneportal.budgetservice.web.endpoint; +package it.valeriovaudi.onlyoneportal.budgetservice.budget.revenue; import com.fasterxml.jackson.databind.ObjectMapper; import it.valeriovaudi.onlyoneportal.budgetservice.budget.Money; -import it.valeriovaudi.onlyoneportal.budgetservice.budget.revenue.*; import it.valeriovaudi.onlyoneportal.budgetservice.time.Year; import it.valeriovaudi.onlyoneportal.budgetservice.user.UserName; import it.valeriovaudi.onlyoneportal.budgetservice.user.UserRepository; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.ExtendWith; 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.http.MediaType; import org.springframework.security.oauth2.jwt.JwtDecoder; import org.springframework.security.test.context.support.WithMockUser; -import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.web.servlet.MockMvc; import java.io.IOException; @@ -31,8 +27,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; -@ExtendWith(SpringExtension.class) -@WebMvcTest(BudgetRevenueEndPoint.class) +//@WebMvcTest(BudgetRevenueEndPoint.class) //todo https://github.com/spring-projects/spring-boot/issues/32195 public class BudgetRevenueEndPointTest { @Autowired diff --git a/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/searchtag/SearchTagEndPointTest.java b/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/searchtag/SearchTagEndPointTest.java index 524df92..86db4ad 100644 --- a/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/searchtag/SearchTagEndPointTest.java +++ b/src/test/java/it/valeriovaudi/onlyoneportal/budgetservice/searchtag/SearchTagEndPointTest.java @@ -2,13 +2,10 @@ import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.ExtendWith; 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.security.oauth2.jwt.JwtDecoder; import org.springframework.security.test.context.support.WithMockUser; -import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.web.servlet.MockMvc; import java.util.List; @@ -21,8 +18,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; -@ExtendWith(SpringExtension.class) -@WebMvcTest(SearchTagEndPoint.class) +//@WebMvcTest(SearchTagEndPoint.class) //todo https://github.com/spring-projects/spring-boot/issues/32195 public class SearchTagEndPointTest { @Autowired