tech.grasshopper.pdf.pojo.cucumber.NonExecutable 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.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import lombok.Builder.Default;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.SuperBuilder;
import tech.grasshopper.pdf.annotation.Annotation;
import tech.grasshopper.pdf.destination.Destination;
@Data
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
public abstract class NonExecutable extends BaseEntity {
@Default
protected List tags = new ArrayList<>();
@Default
protected List devices = new ArrayList<>();
@Default
protected List authors = new ArrayList<>();
@Default
protected List annotations = new ArrayList<>();
protected Destination destination;
@Default
protected Map additionalData = new HashMap();
public void addAnnotation(Annotation annotation) {
annotations.add(annotation);
}
public void addAdditionalData(String key, Object value) {
additionalData.put(key, value);
}
public Optional