

package de.arkraft.jenkins.entities;

import de.arkraft.jenkins.JenkinsUtils;
import org.joda.time.Duration;

public class TestCase {

    private Integer age;
    private String className;
    private Duration duration;
    private Object errorDetails;
    private Object errorStackTrace;
    private Integer failedSince;
    private String name;
    private Boolean skipped;
    private Object skippedMessage;
    private String status;
    private String stderr;
    private String stdout;

    /**
     *
     * @return
     * The age
     */
    public Integer getAge() {
        return age;
    }

    /**
     *
     * @param age
     * The age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     *
     * @return
     * The className
     */
    public String getClassName() {
        return className;
    }

    /**
     *
     * @param className
     * The className
     */
    public void setClassName(String className) {
        this.className = className;
    }

    /**
     *
     * @return
     * The duration
     */
    public Duration getDuration() {
        return duration;
    }

    /**
     *
     * @param duration
     * The duration
     */
    public void setDuration(Duration duration) {
        this.duration = duration;
    }

    /**
     *
     * @return
     * The errorDetails
     */
    public Object getErrorDetails() {
        return errorDetails;
    }

    /**
     *
     * @param errorDetails
     * The errorDetails
     */
    public void setErrorDetails(Object errorDetails) {
        this.errorDetails = errorDetails;
    }

    /**
     *
     * @return
     * The errorStackTrace
     */
    public Object getErrorStackTrace() {
        return errorStackTrace;
    }

    /**
     *
     * @param errorStackTrace
     * The errorStackTrace
     */
    public void setErrorStackTrace(Object errorStackTrace) {
        this.errorStackTrace = errorStackTrace;
    }

    /**
     *
     * @return
     * The failedSince
     */
    public Integer getFailedSince() {
        return failedSince;
    }

    /**
     *
     * @param failedSince
     * The failedSince
     */
    public void setFailedSince(Integer failedSince) {
        this.failedSince = failedSince;
    }

    /**
     *
     * @return
     * The name
     */
    public String getName() {
        return name;
    }

    /**
     *
     * @param name
     * The name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     *
     * @return
     * The skipped
     */
    public Boolean getSkipped() {
        return skipped;
    }

    /**
     *
     * @param skipped
     * The skipped
     */
    public void setSkipped(Boolean skipped) {
        this.skipped = skipped;
    }

    /**
     *
     * @return
     * The skippedMessage
     */
    public Object getSkippedMessage() {
        return skippedMessage;
    }

    /**
     *
     * @param skippedMessage
     * The skippedMessage
     */
    public void setSkippedMessage(Object skippedMessage) {
        this.skippedMessage = skippedMessage;
    }

    /**
     *
     * @return
     * The status
     */
    public String getStatus() {
        return status;
    }

    /**
     *
     * @param status
     * The status
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     *
     * @return
     * The stderr
     */
    public String getStderr() {
        return stderr;
    }

    /**
     *
     * @param stderr
     * The stderr
     */
    public void setStderr(String stderr) {
        this.stderr = stderr;
    }

    /**
     *
     * @return
     * The stdout
     */
    public String getStdout() {
        return stdout;
    }

    /**
     *
     * @param stdout
     * The stdout
     */
    public void setStdout(String stdout) {
        this.stdout = stdout;
    }

    public String getDurationAsString() {
        return JenkinsUtils.PERIOD_FORMATTER.print(duration.toPeriod());
    }
}
