Package pro.taskana.common.test
Class BaseRestDocTest
- java.lang.Object
-
- pro.taskana.common.test.BaseRestDocTest
-
@ExtendWith(org.springframework.restdocs.RestDocumentationExtension.class) public class BaseRestDocTest extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBaseRestDocTest.MixInIgnoreType
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.test.web.servlet.MockMvcmockMvcprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapperprotected RestHelperrestHelper
-
Constructor Summary
Constructors Constructor Description BaseRestDocTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.restdocs.mockmvc.RestDocumentationResultHandlercommonDocumentation(org.springframework.restdocs.snippet.Snippet... snippets)voidsetUp(org.springframework.web.context.WebApplicationContext webApplicationContext, org.springframework.restdocs.RestDocumentationContextProvider restDocumentation)
-
-
-
Field Detail
-
mockMvc
protected org.springframework.test.web.servlet.MockMvc mockMvc
-
objectMapper
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
restHelper
@Autowired protected RestHelper restHelper
-
-
Method Detail
-
setUp
@BeforeEach public void setUp(org.springframework.web.context.WebApplicationContext webApplicationContext, org.springframework.restdocs.RestDocumentationContextProvider restDocumentation)
-
commonDocumentation
protected org.springframework.restdocs.mockmvc.RestDocumentationResultHandler commonDocumentation(org.springframework.restdocs.snippet.Snippet... snippets)
-
-