skip authentication
This commit is contained in:
parent
82b58576b4
commit
cc5c20c652
@ -8,6 +8,7 @@ import com.fasterxml.jackson.databind.ObjectWriter;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
|
||||
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
|
||||
import org.springframework.boot.test.mock.mockito.MockBean;
|
||||
import org.springframework.http.MediaType;
|
||||
@ -16,6 +17,7 @@ import org.springframework.test.web.servlet.MockMvc;
|
||||
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
|
||||
import org.springframework.test.web.servlet.result.MockMvcResultMatchers;
|
||||
|
||||
@AutoConfigureMockMvc(addFilters = false)
|
||||
@WebMvcTest(MerchantsController.class)
|
||||
class MerchantsControllerTests {
|
||||
@Resource
|
||||
|
@ -9,6 +9,7 @@ import jakarta.annotation.Resource;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
|
||||
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
|
||||
import org.springframework.boot.test.mock.mockito.MockBean;
|
||||
import org.springframework.http.MediaType;
|
||||
@ -20,6 +21,7 @@ import org.springframework.test.web.servlet.result.MockMvcResultMatchers;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
||||
@AutoConfigureMockMvc(addFilters = false)
|
||||
@WebMvcTest(UsersController.class)
|
||||
class UsersControllerTests {
|
||||
@Resource
|
||||
|
Loading…
Reference in New Issue
Block a user