Package io.quarkiverse.mailpit.test.rest
Class TestingApi
- java.lang.Object
-
- io.quarkiverse.mailpit.test.rest.TestingApi
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TestingApi extends Object
-
-
Constructor Summary
Constructors Constructor Description TestingApi()TestingApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ApiExceptiongetApiException(String operationId, HttpResponse<InputStream> response)voidgetMessageHTML(String ID)Render message HTML part Renders just the message's HTML part which can be used for UI integration testing.ApiResponse<Void>getMessageHTMLWithHttpInfo(String ID)Render message HTML part Renders just the message's HTML part which can be used for UI integration testing.voidgetMessageText(String ID)Render message text part Renders just the message's text part which can be used for UI integration testing.ApiResponse<Void>getMessageTextWithHttpInfo(String ID)Render message text part Renders just the message's text part which can be used for UI integration testing.
-
-
-
Constructor Detail
-
TestingApi
public TestingApi()
-
TestingApi
public TestingApi(ApiClient apiClient)
-
-
Method Detail
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException
- Throws:
IOException
-
getMessageHTML
public void getMessageHTML(String ID) throws ApiException
Render message HTML part Renders just the message's HTML part which can be used for UI integration testing. Attached inline images are modified to link to the API provided they exist. Note that is the message does not contain a HTML part then an 404 error is returned. The ID can be set to `latest` to return the latest message.- Parameters:
ID- Database ID or latest (required)- Throws:
ApiException- if fails to make API call
-
getMessageHTMLWithHttpInfo
public ApiResponse<Void> getMessageHTMLWithHttpInfo(String ID) throws ApiException
Render message HTML part Renders just the message's HTML part which can be used for UI integration testing. Attached inline images are modified to link to the API provided they exist. Note that is the message does not contain a HTML part then an 404 error is returned. The ID can be set to `latest` to return the latest message.- Parameters:
ID- Database ID or latest (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call
-
getMessageText
public void getMessageText(String ID) throws ApiException
Render message text part Renders just the message's text part which can be used for UI integration testing. The ID can be set to `latest` to return the latest message.- Parameters:
ID- Database ID or latest (required)- Throws:
ApiException- if fails to make API call
-
getMessageTextWithHttpInfo
public ApiResponse<Void> getMessageTextWithHttpInfo(String ID) throws ApiException
Render message text part Renders just the message's text part which can be used for UI integration testing. The ID can be set to `latest` to return the latest message.- Parameters:
ID- Database ID or latest (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call
-
-