tech.grasshopper.pdf.pojo.cucumber.Executable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-pdf-report Show documentation
Show all versions of cucumber-pdf-report Show documentation
Generates Cucumber execution report in PDF format
The newest version!
package tech.grasshopper.pdf.pojo.cucumber;
import java.util.ArrayList;
import java.util.List;
import lombok.Builder.Default;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.SuperBuilder;
import tech.grasshopper.pdf.annotation.Annotation;
import tech.grasshopper.pdf.annotation.FileAnnotation;
import tech.grasshopper.pdf.destination.Destination;
import tech.grasshopper.pdf.section.details.executable.ExecutableDisplay;
@Data
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
public abstract class Executable extends BaseEntity {
protected Feature feature;
protected Scenario scenario;
@Default
protected List output = new ArrayList<>();
@Default
protected List media = new ArrayList<>();
protected Status status;
@Default
protected String errorMessage = "";
@Default
protected String location = "";
@Default
protected List annotations = new ArrayList<>();
@Default
protected List destinations = new ArrayList<>();
@Default
protected List attachAnnotations = new ArrayList<>();
public void addAnnotation(Annotation annotation) {
annotations.add(annotation);
}
public void addAttachAnnotation(FileAnnotation annotation) {
attachAnnotations.add(annotation);
}
public abstract ExecutableDisplay getDisplay();
}