io.qameta.allure.history.HistoryTrendItem Maven / Gradle / Ivy
package io.qameta.allure.history;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSetter;
import io.qameta.allure.entity.Statistic;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.xml.bind.annotation.XmlElement;
import java.io.Serializable;
/**
* @author charlie (Dmitry Baev).
*/
@Data
@Accessors(chain = true)
public class HistoryTrendItem implements Serializable {
private static final long serialVersionUID = 1L;
@JsonProperty("data")
@XmlElement(required = true)
protected Statistic data;
@XmlElement(required = true, type = Long.class, nillable = true)
protected Long buildOrder;
@XmlElement(required = true)
protected String reportUrl;
@XmlElement(required = true)
protected String reportName;
@JsonIgnore
public Statistic getStatistic() {
return data;
}
@JsonSetter("statistic")
public HistoryTrendItem setStatistic(final Statistic statistic) {
this.data = statistic;
return this;
}
}