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(RPCTestWithResultsDto rpcTest)
here we provide additional handling on the generated RPC tests
|
ScheduleTaskInvocationResultDto |
customizeScheduleTaskInvocation(ScheduleTaskInvocationDto invocationDto,
boolean invoked)
implement how to invoke schedule task for providing a customized solution
regarding ScheduleTaskInvocationResultDto, its status typed with ExecutionStatusDto indicates invocation status of the schedule tasks
Once the task is successfully invoked, its status should be RUNNING
then if the task is completed, its status should be COMPLETE
FAILED is used to handle any exception in handling invocation of the schedule task.
|
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
|
boolean |
isScheduleTaskCompleted(ScheduleTaskInvocationResultDto invocationInfo) |
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(RPCTestWithResultsDto rpcTest)
here we provide additional handling on the generated RPC tests
rpcTest - represent generated tests by evomaster which contains executed actions and executed results, ie, return, for deriving assertionsboolean 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.ScheduleTaskInvocationResultDto customizeScheduleTaskInvocation(ScheduleTaskInvocationDto invocationDto, boolean invoked)
implement how to invoke schedule task for providing a customized solution regarding ScheduleTaskInvocationResultDto, its status typed with ExecutionStatusDto indicates invocation status of the schedule tasks Once the task is successfully invoked, its status should be RUNNING then if the task is completed, its status should be COMPLETE FAILED is used to handle any exception in handling invocation of the schedule task.
invocationDto - specified necessary info for invoking/terminating schedule tasksinvoked - defines to invoke (invoked is true) or terminate (invoked is false) the specified schedule taskboolean isScheduleTaskCompleted(ScheduleTaskInvocationResultDto invocationInfo)
invocationInfo - has the info about the invoked schedule taskMap<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–2025. All rights reserved.