Search in sources :

Example 11 with MockRequest

use of com.arbindo.mimock.manage.mimocks.models.request.MockRequest in project mimock by arbindo.

the class MocksGenerator method createMockRequestWithFile.

public static MockRequest createMockRequestWithFile(MultipartFile file) {
    MockRequest mockRequest = createMockRequest();
    mockRequest.setBinaryFile(file);
    return mockRequest;
}
Also used : ProcessedMockRequest(com.arbindo.mimock.manage.mimocks.models.request.ProcessedMockRequest) MockRequest(com.arbindo.mimock.manage.mimocks.models.request.MockRequest)

Aggregations

MockRequest (com.arbindo.mimock.manage.mimocks.models.request.MockRequest)11 ProcessedMockRequest (com.arbindo.mimock.manage.mimocks.models.request.ProcessedMockRequest)11 Test (org.junit.jupiter.api.Test)10 Mock (com.arbindo.mimock.entities.Mock)9 JsonMapper.convertObjectToJsonString (com.arbindo.mimock.helpers.general.JsonMapper.convertObjectToJsonString)9 RandomDataGenerator.generateRandomAlphabeticString (com.arbindo.mimock.helpers.general.RandomDataGenerator.generateRandomAlphabeticString)9 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)9 ArgumentMatchers.anyString (org.mockito.ArgumentMatchers.anyString)9 WebMvcTest (org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest)9 MockMultipartFile (org.springframework.mock.web.MockMultipartFile)9 MvcResult (org.springframework.test.web.servlet.MvcResult)9 MockMultipartHttpServletRequestBuilder (org.springframework.test.web.servlet.request.MockMultipartHttpServletRequestBuilder)7 Messages (com.arbindo.mimock.common.constants.Messages)5 UrlConfig (com.arbindo.mimock.common.constants.UrlConfig)5 GenericResponseWrapper (com.arbindo.mimock.common.wrapper.GenericResponseWrapper)5 MocksGenerator (com.arbindo.mimock.helpers.entities.MocksGenerator)5 DefaultHttpInterceptor (com.arbindo.mimock.interceptor.DefaultHttpInterceptor)5 Status (com.arbindo.mimock.manage.mimocks.enums.Status)5 MockManagementService (com.arbindo.mimock.manage.mimocks.service.MockManagementService)5 JwtRequestFilter (com.arbindo.mimock.security.JwtRequestFilter)5