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

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

There is a newer version: 2.14.0
Show newest version
package tech.grasshopper.pdf.pojo.cucumber;


import java.time.Duration;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

import org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationLink;
import org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageXYZDestination;

import lombok.Builder;
import lombok.Builder.Default;
import lombok.Data;

@Data
@Builder
public class Feature {

	@Default
    private List scenarios = new ArrayList<>();
    private String name;
    @Default
    private List tags = new ArrayList<>();
    
    @Default
    private List annotations = new ArrayList<>();
    private PDPageXYZDestination destination;
    
    @Default
	private int passedScenarios = 0;
    @Default
	private int failedScenarios = 0;
    @Default
	private int skippedScenarios = 0;
    @Default
    private int totalScenarios = 0;
	
    @Default
	private int passedSteps = 0;
    @Default
	private int failedSteps = 0;
    @Default
	private int skippedSteps = 0;
    @Default
    private int totalSteps = 0;
    
    private Status status;
    
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    
    public Duration getDuration() {
		return Duration.between(startTime, endTime);
	}
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy