com.arextest.web.model.contract.contracts.config.replay.ComparisonInclusionsConfiguration Maven / Gradle / Ivy
package com.arextest.web.model.contract.contracts.config.replay;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.util.CollectionUtils;
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class ComparisonInclusionsConfiguration extends AbstractComparisonDetailsConfiguration {
List inclusions;
@Override
public void validParameters() throws Exception {
super.validParameters();
if (CollectionUtils.isEmpty(inclusions)) {
throw new Exception("inclusions cannot be empty");
}
}
}