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

com.capitalone.dashboard.api.domain.TestStep Maven / Gradle / Ivy

There is a newer version: 3.1.4
Show newest version
package com.capitalone.dashboard.api.domain;

import com.atlassian.jira.rest.client.api.domain.BasicIssue;
import com.capitalone.dashboard.core.json.util.RendereableItem;

import java.net.URI;

/**
 * This class will get the details from a Test Step
 */
public class TestStep extends BasicIssue implements Versionable {

    private int version = 0;
    private TestStep oldVersion = null;

    //TODO: To be used in future
    private Integer index;
    private RendereableItem step;
    private RendereableItem data;
    private RendereableItem result;
    private Iterable attachments;
    private Iterable evidences;
    Iterable defects;
    private Comment comment;
    private Status status;


    public TestStep(URI self, String key, Long id) {
        super(self, key, id);
    }

    public TestStep(URI self, String key, Long id, Integer index, RendereableItem step, RendereableItem data, RendereableItem result, Status status) {
        super(self, key, id);
        this.index = index;
        this.step = step;
        this.data = data;
        this.result = result;
        this.status = status;
    }


    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public RendereableItem getStep() {
        return step;
    }

    public void setStep(RendereableItem step) {
        this.step = step;
    }

    public RendereableItem getData() {
        return data;
    }

    public void setData(RendereableItem data) {
        this.data = data;
    }

    public RendereableItem getResult() {
        return result;
    }

    public void setResult(RendereableItem result) {
        this.result = result;
    }

    public Iterable getAttachments() {
        return attachments;
    }

    public void setAttachments(Iterable attachments) {
        this.setOldVersion(this);
        this.attachments = attachments;
    }

    public TestStep getOldVersion() {
        return oldVersion;
    }

    public void setOldVersion(TestStep oldVersion) {
        if (this.oldVersion == null)
            this.oldVersion = oldVersion;
        this.version = 1;
    }

    public int getVersion() {
        return version;
    }

    public Comment getComment() {
        return comment;
    }

    public void setComment(Comment comment) {
        this.comment = comment;
    }

    public Iterable getEvidences() {
        return evidences;
    }

    public void setEvidences(Iterable evidences) {
        this.evidences = evidences;
    }

    public Iterable getDefects() {
        return defects;
    }

    public enum Status {TODO, EXECUTING, ABORTED, FAIL, PASS, SKIP}

    public Status getStatus() {
        return status;
    }

}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy