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

io.orangebeard.client.entity.FinishTestItem Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show newest version
package io.orangebeard.client.entity;

import java.time.LocalDateTime;
import java.util.Set;
import java.util.UUID;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@Getter
@NoArgsConstructor
public class FinishTestItem {
    @JsonProperty("launchUuid")
    private UUID testRunUUID;

    @JsonSerialize(using = DateSerializer.class)
    private LocalDateTime endTime;
    private Status status;
    private String description;
    private Set attributes;

    public FinishTestItem(UUID testRunUUID, Status status, String description, Set attributes) {
        this.testRunUUID = testRunUUID;
        this.status = status;
        this.description = description;
        this.endTime = LocalDateTime.now();
        this.attributes = attributes;
    }

    public FinishTestItem(UUID testRunUUID, Status status) {
        this.testRunUUID = testRunUUID;
        this.status = status;
        this.endTime = LocalDateTime.now();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy