com.arextest.model.replay.CompareRelationResult Maven / Gradle / Ivy
package com.arextest.model.replay;
import com.arextest.model.mock.MockCategoryType;
import lombok.Data;
/**
* created by xinyuan_wang on 2023/06/04
*/
@Data
public class CompareRelationResult {
private MockCategoryType categoryType;
private String operationName;
private String recordId;
private String replayId;
/**
* record request message
*/
private String recordMessage;
/**
* replay request message
*/
private String replayMessage;
/**
* extend message,eg: SOAConsumer responseBody
*/
private String extendMessage;
private long recordTime;
private long replayTime;
private String appId;
/**
* Check whether the recording and playback request messages are consistent.
* If they are consistent, only baseMsg needs to be passed.
*/
private boolean sameMessage;
public String getReplayMessage() {
return sameMessage ? this.recordMessage : this.replayMessage;
}
}