Class BaseTesseractHealthTest
java.lang.Object
org.imageconverter.controller.actuator.BaseTesseractHealthTest
Base class to test with csf.
- Author:
- Fernando Romulo da Silva
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.security.web.csrf.CsrfTokenRepository
protected int
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.http.HttpHeaders
Create headers with basic authenticationprotected org.springframework.http.HttpHeaders
Create headers with basic authentication with csrf
-
Field Details
-
serverPort
@LocalServerPort protected int serverPort -
managementPort
@LocalManagementPort protected int managementPort -
httpSessionCsrfTokenRepository
@Autowired protected org.springframework.security.web.csrf.CsrfTokenRepository httpSessionCsrfTokenRepository
-
-
Constructor Details
-
BaseTesseractHealthTest
public BaseTesseractHealthTest()
-
-
Method Details
-
basicAuthHeaders
protected org.springframework.http.HttpHeaders basicAuthHeaders() throws UnsupportedEncodingExceptionCreate headers with basic authentication- Returns:
- A HttpHeaders object
- Throws:
UnsupportedEncodingException
- If something get wrong
-
csrfHeaders
Create headers with basic authentication with csrf- Returns:
- A HttpHeaders object
- Throws:
UnsupportedEncodingException
- If something get wrong
-