public interface CustomizationHandler
| Modifier and Type | Method and Description |
|---|---|
CustomizedCallResultCode |
categorizeBasedOnResponse(Object response)
categorize result based on response
|
boolean |
customizeMockingDatabase(List<MockDatabaseDto> databaseDtos,
boolean enabled)
implement how to enable/disable customized mock objects for database
|
boolean |
customizeMockingRPCExternalService(List<MockRPCExternalServiceDto> externalServiceDtos,
boolean enabled)
implement how to enable/disable mocking of RPC based external services
|
boolean |
customizeRPCTestOutput(List<MockRPCExternalServiceDto> externalServiceDtos,
List<String> sqlInsertions,
List<EvaluatedRPCActionDto> actions)
here we provide additional handling on the generated RPC tests
|
List<CustomizedRequestValueDto> |
getCustomizedValueInRequests()
specify candidate values in requests
|
Map<Class,Integer> |
getExceptionImportanceLevels()
specify importance levels for exceptions
lower value more important, 0 is the most important exception which needs to be fixed earliest
|
List<SeededRPCTestDto> |
seedRPCTests()
specify seeded tests for RPC
|
List<CustomizedNotNullAnnotationForRPCDto> |
specifyCustomizedNotNullAnnotation()
specify customized annotation indicating that field in DTO is not null if any
|
CustomizedCallResultCode categorizeBasedOnResponse(Object response)
categorize result based on response
response - is a given responseList<CustomizedRequestValueDto> getCustomizedValueInRequests()
specify candidate values in requests
List<CustomizedNotNullAnnotationForRPCDto> specifyCustomizedNotNullAnnotation()
specify customized annotation indicating that field in DTO is not null if any
List<SeededRPCTestDto> seedRPCTests()
specify seeded tests for RPC
boolean customizeRPCTestOutput(List<MockRPCExternalServiceDto> externalServiceDtos, List<String> sqlInsertions, List<EvaluatedRPCActionDto> actions)
here we provide additional handling on the generated RPC tests
externalServiceDtos - represent info is to mock responses of external servicessqlInsertions - represent a sequence of SQL insertionsactions - represent a list of RPC actions to execute in this test with returned responsesboolean customizeMockingRPCExternalService(List<MockRPCExternalServiceDto> externalServiceDtos, boolean enabled)
implement how to enable/disable mocking of RPC based external services
externalServiceDtos - contains info about how to setup responsesenabled - reflect to enable (set it true) or disable (set it false) the specified external service dtos.
Note that null [externalServiceDtos] with false [enabled] means that all existing external service setup should be disabled.boolean customizeMockingDatabase(List<MockDatabaseDto> databaseDtos, boolean enabled)
implement how to enable/disable customized mock objects for database
databaseDtos - contains info about how to mock databases based on commandNameenabled - reflect to enable (set it true) or disable (set it false) mock objects for sql command based on commandName
Note that null [databaseDtos] with false [enabled] means that all existing mock objects should be disabled.Map<Class,Integer> getExceptionImportanceLevels()
specify importance levels for exceptions lower value more important, 0 is the most important exception which needs to be fixed earliest
Copyright © 2016–2023. All rights reserved.