io.orangebeard.client.entity.FinishTestItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Orangebeard Java Client, to be used in Orangebeard Java Listeners
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();
}
}