public class FastStubsHelper extends Object
| Constructor and Description |
|---|
FastStubsHelper() |
public static org.qubership.automation.itf.core.stub.fast.ResponseDescription checkConditions(org.qubership.automation.itf.core.model.jpa.context.JsonContext context, org.qubership.automation.itf.core.stub.fast.StubEndpointConfig cfg)
context - - JsonContext of variables,cfg - - Stubs configuration,public static boolean isReportingSkipped(Boolean skipResponseReporting, Boolean skipEndpointReporting)
skipResponseReporting - - skipReporting property on the Response level,skipEndpointReporting - - skipReporting property on the Endpoint level,public static javax.jms.TextMessage createTextMessage(String text, long time, String id, String type, String tenantId) throws javax.jms.JMSException
text - - message body,time - - timestamp,id - - id of message object,type - - type of message,tenantId - - project Uuid,javax.jms.JMSException - - in case exceptions are faced while message composing.public static void sendMessageToReport(org.qubership.automation.itf.core.model.jpa.message.Message incoming, org.qubership.automation.itf.core.model.jpa.message.Message outgoing, org.qubership.automation.itf.core.util.descriptor.StorableDescriptor triggerDescriptor, Date startTime, Date endTime, org.qubership.automation.itf.core.model.jpa.context.JsonContext parsedContext, String endPoint, org.qubership.automation.itf.core.stub.fast.ResponseDescription responseDescription) throws com.fasterxml.jackson.core.JsonProcessingException, javax.jms.JMSException
incoming - - incoming message,outgoing - - outgoing message,triggerDescriptor - - trigger configuration descriptor,startTime - - start time of processing,endTime - - end time of processing,parsedContext - - context of variables,endPoint - - configured endpoint,com.fasterxml.jackson.core.JsonProcessingException - - in case JSON serialization exceptions,javax.jms.JMSException - - in case exceptions while message composing and sending.public static void recalculateOperationDefinitionKey(org.qubership.automation.itf.core.stub.fast.StubEndpointConfig cfg, org.qubership.automation.itf.core.model.jpa.context.JsonContext context)
cfg - - Stub Endpoint Config,context - - context object.Copyright © 2025. All rights reserved.