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

tech.grasshopper.pdf.pojo.cucumber.Hook 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 lombok.Builder;
import lombok.Builder.Default;
import lombok.Data;

@Data
@Builder
public class Hook {

	@Default
	private List output = new ArrayList<>();
	@Default
	private List media = new ArrayList<>();
    
    private Status status;
    private String errorMessage;
    private String location;
    
    private HookType hookType;
    
    private LocalDateTime startTime;
    private LocalDateTime endTime;

    public Duration getDuration() {
		return Duration.between(startTime, endTime);
	}
    
    public static enum HookType {
    	BEFORE, AFTER, BEFORE_STEP, AFTER_STEP;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy