use of com.axway.ats.agent.core.templateactions.model.TemplateActionResponseVerificator in project ats-framework by Axway.
the class TemplateLoadClient method configureAgentLoaders.
/**
* Called right before sending the queued actions
* @throws AgentException
*/
@Override
protected void configureAgentLoaders() throws AgentException {
super.configureAgentLoaders();
// get the configurator instance
TemplateActionsResponseVerificationConfigurator verificationConfigurator = new TemplateActionsResponseVerificationConfigurator(queueName);
// add globally applicable header matchers
verificationConfigurator.addGlobalHeaderMatchers(globalHeadersMatchers);
// add action verificators
for (TemplateActionResponseVerificator verificator : verificators.values()) {
verificationConfigurator.addActionVerificator(verificator);
}
// send the info to all loaders
for (String loader : loaderAddresses) {
new TemplateActionsResponseVerificationClient(loader, verificationConfigurator).send();
}
}
use of com.axway.ats.agent.core.templateactions.model.TemplateActionResponseVerificator in project ats-framework by Axway.
the class TemplateLoadClient method getStepHeaderMatchers.
private List<HeaderMatcher> getStepHeaderMatchers(String actionName, int stepNumber) {
TemplateActionResponseVerificator actionVerificator = verificators.get(actionName);
if (actionVerificator == null) {
actionVerificator = new TemplateActionResponseVerificator(actionName);
verificators.put(actionName, actionVerificator);
}
return actionVerificator.getStepHeaderMatchers(stepNumber);
}
use of com.axway.ats.agent.core.templateactions.model.TemplateActionResponseVerificator in project ats-framework by Axway.
the class TemplateLoadClient method getStepBodyMatchers.
private List<ResponseMatcher> getStepBodyMatchers(String actionName, int stepNumber) {
TemplateActionResponseVerificator actionVerificator = verificators.get(actionName);
if (actionVerificator == null) {
actionVerificator = new TemplateActionResponseVerificator(actionName);
verificators.put(actionName, actionVerificator);
}
return actionVerificator.getStepBodyMatchers(stepNumber);
}
Aggregations