96 lines
1.9 KiB
Java
96 lines
1.9 KiB
Java
package com.eactive.testmaster.api.dto;
|
|
|
|
import com.eactive.testmaster.common.validator.UniqueRoute;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import javax.validation.constraints.NotEmpty;
|
|
import javax.validation.constraints.Size;
|
|
|
|
@UniqueRoute(path = "pathPattern", method = "method")
|
|
public class MockRouteRegisterDTO {
|
|
|
|
private Long id;
|
|
|
|
@NotEmpty
|
|
private String method;
|
|
|
|
@NotEmpty
|
|
private String pathPattern;
|
|
|
|
@NotEmpty
|
|
private String name;
|
|
|
|
private String group;
|
|
|
|
private String description;
|
|
|
|
private String requestScript;
|
|
|
|
@Size(min = 1, message = "Response must have at least one item")
|
|
private List<MockResponseDTO> responses = new ArrayList<>();
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getMethod() {
|
|
return method;
|
|
}
|
|
|
|
public void setMethod(String method) {
|
|
this.method = method;
|
|
}
|
|
|
|
public String getPathPattern() {
|
|
return pathPattern;
|
|
}
|
|
|
|
public void setPathPattern(String pathPattern) {
|
|
this.pathPattern = pathPattern;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public List<MockResponseDTO> getResponses() {
|
|
return responses;
|
|
}
|
|
|
|
public void setResponses(List<MockResponseDTO> responses) {
|
|
this.responses = responses;
|
|
}
|
|
|
|
public String getRequestScript() {
|
|
return requestScript;
|
|
}
|
|
|
|
public void setRequestScript(String requestScript) {
|
|
this.requestScript = requestScript;
|
|
}
|
|
|
|
public String getGroup() {
|
|
return group;
|
|
}
|
|
|
|
public void setGroup(String group) {
|
|
this.group = group;
|
|
}
|
|
}
|