All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.grasshopper.pdf.pojo.cucumber.Executable Maven / Gradle / Ivy

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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy