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

com.codepine.api.testrail.model.Run Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
// Generated by delombok at Sat Feb 27 13:39:31 PST 2016
/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2015 Kunal Shah
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.codepine.api.testrail.model;

import com.codepine.api.testrail.TestRail;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonView;
import java.util.Date;
import java.util.List;

/**
 * TestRail run.
 */
public class Run {
    private int id;
    @JsonView({TestRail.Runs.Add.class, TestRail.Runs.Update.class})
    private String name;
    @JsonView({TestRail.Runs.Add.class, TestRail.Runs.Update.class})
    private String description;
    private String url;
    private int projectId;
    private Integer planId;
    @JsonView(TestRail.Runs.Add.class)
    private Integer suiteId;
    @JsonView({TestRail.Runs.Add.class, TestRail.Runs.Update.class})
    private Integer milestoneId;
    @JsonView({TestRail.Runs.Add.class, TestRail.Plans.Add.class, TestRail.Plans.AddEntry.class})
    private Integer assignedtoId;
    @JsonView({TestRail.Runs.Add.class, TestRail.Runs.Update.class, TestRail.Plans.Add.class, TestRail.Plans.AddEntry.class})
    private Boolean includeAll;
    @JsonView({TestRail.Runs.Add.class, TestRail.Runs.Update.class, TestRail.Plans.Add.class, TestRail.Plans.AddEntry.class})
    private List caseIds;
    private Date createdOn;
    private int createdBy;
    @JsonProperty
    private boolean isCompleted;
    private Date completedOn;
    private List config;
    @JsonView({TestRail.Plans.Add.class, TestRail.Plans.AddEntry.class})
    private List configIds;
    private int passedCount;
    private int blockedCount;
    private int untestedCount;
    private int retestCount;
    private int failedCount;
    private int customStatus1Count;
    private int customStatus2Count;
    private int customStatus3Count;
    private int customStatus4Count;
    private int customStatus5Count;
    private int customStatus6Count;
    private int customStatus7Count;

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run() {
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getId() {
        return this.id;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String getName() {
        return this.name;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String getDescription() {
        return this.description;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String getUrl() {
        return this.url;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getProjectId() {
        return this.projectId;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Integer getPlanId() {
        return this.planId;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Integer getSuiteId() {
        return this.suiteId;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Integer getMilestoneId() {
        return this.milestoneId;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Integer getAssignedtoId() {
        return this.assignedtoId;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Boolean getIncludeAll() {
        return this.includeAll;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public List getCaseIds() {
        return this.caseIds;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Date getCreatedOn() {
        return this.createdOn;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getCreatedBy() {
        return this.createdBy;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Date getCompletedOn() {
        return this.completedOn;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public List getConfig() {
        return this.config;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public List getConfigIds() {
        return this.configIds;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getPassedCount() {
        return this.passedCount;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getBlockedCount() {
        return this.blockedCount;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getUntestedCount() {
        return this.untestedCount;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getRetestCount() {
        return this.retestCount;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getFailedCount() {
        return this.failedCount;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getCustomStatus1Count() {
        return this.customStatus1Count;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getCustomStatus2Count() {
        return this.customStatus2Count;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getCustomStatus3Count() {
        return this.customStatus3Count;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getCustomStatus4Count() {
        return this.customStatus4Count;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getCustomStatus5Count() {
        return this.customStatus5Count;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getCustomStatus6Count() {
        return this.customStatus6Count;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getCustomStatus7Count() {
        return this.customStatus7Count;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setId(final int id) {
        this.id = id;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setName(final String name) {
        this.name = name;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setDescription(final String description) {
        this.description = description;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setUrl(final String url) {
        this.url = url;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setProjectId(final int projectId) {
        this.projectId = projectId;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setPlanId(final Integer planId) {
        this.planId = planId;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setSuiteId(final Integer suiteId) {
        this.suiteId = suiteId;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setMilestoneId(final Integer milestoneId) {
        this.milestoneId = milestoneId;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setAssignedtoId(final Integer assignedtoId) {
        this.assignedtoId = assignedtoId;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setIncludeAll(final Boolean includeAll) {
        this.includeAll = includeAll;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setCaseIds(final List caseIds) {
        this.caseIds = caseIds;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setCreatedOn(final Date createdOn) {
        this.createdOn = createdOn;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setCreatedBy(final int createdBy) {
        this.createdBy = createdBy;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setCompleted(final boolean isCompleted) {
        this.isCompleted = isCompleted;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setCompletedOn(final Date completedOn) {
        this.completedOn = completedOn;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setConfig(final List config) {
        this.config = config;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setConfigIds(final List configIds) {
        this.configIds = configIds;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setPassedCount(final int passedCount) {
        this.passedCount = passedCount;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setBlockedCount(final int blockedCount) {
        this.blockedCount = blockedCount;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setUntestedCount(final int untestedCount) {
        this.untestedCount = untestedCount;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setRetestCount(final int retestCount) {
        this.retestCount = retestCount;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setFailedCount(final int failedCount) {
        this.failedCount = failedCount;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setCustomStatus1Count(final int customStatus1Count) {
        this.customStatus1Count = customStatus1Count;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setCustomStatus2Count(final int customStatus2Count) {
        this.customStatus2Count = customStatus2Count;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setCustomStatus3Count(final int customStatus3Count) {
        this.customStatus3Count = customStatus3Count;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setCustomStatus4Count(final int customStatus4Count) {
        this.customStatus4Count = customStatus4Count;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setCustomStatus5Count(final int customStatus5Count) {
        this.customStatus5Count = customStatus5Count;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setCustomStatus6Count(final int customStatus6Count) {
        this.customStatus6Count = customStatus6Count;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Run setCustomStatus7Count(final int customStatus7Count) {
        this.customStatus7Count = customStatus7Count;
        return this;
    }

    @Override
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof Run)) return false;
        final Run other = (Run)o;
        if (!other.canEqual((Object)this)) return false;
        if (this.getId() != other.getId()) return false;
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
        final Object this$description = this.getDescription();
        final Object other$description = other.getDescription();
        if (this$description == null ? other$description != null : !this$description.equals(other$description)) return false;
        final Object this$url = this.getUrl();
        final Object other$url = other.getUrl();
        if (this$url == null ? other$url != null : !this$url.equals(other$url)) return false;
        if (this.getProjectId() != other.getProjectId()) return false;
        final Object this$planId = this.getPlanId();
        final Object other$planId = other.getPlanId();
        if (this$planId == null ? other$planId != null : !this$planId.equals(other$planId)) return false;
        final Object this$suiteId = this.getSuiteId();
        final Object other$suiteId = other.getSuiteId();
        if (this$suiteId == null ? other$suiteId != null : !this$suiteId.equals(other$suiteId)) return false;
        final Object this$milestoneId = this.getMilestoneId();
        final Object other$milestoneId = other.getMilestoneId();
        if (this$milestoneId == null ? other$milestoneId != null : !this$milestoneId.equals(other$milestoneId)) return false;
        final Object this$assignedtoId = this.getAssignedtoId();
        final Object other$assignedtoId = other.getAssignedtoId();
        if (this$assignedtoId == null ? other$assignedtoId != null : !this$assignedtoId.equals(other$assignedtoId)) return false;
        final Object this$includeAll = this.getIncludeAll();
        final Object other$includeAll = other.getIncludeAll();
        if (this$includeAll == null ? other$includeAll != null : !this$includeAll.equals(other$includeAll)) return false;
        final Object this$caseIds = this.getCaseIds();
        final Object other$caseIds = other.getCaseIds();
        if (this$caseIds == null ? other$caseIds != null : !this$caseIds.equals(other$caseIds)) return false;
        final Object this$createdOn = this.getCreatedOn();
        final Object other$createdOn = other.getCreatedOn();
        if (this$createdOn == null ? other$createdOn != null : !this$createdOn.equals(other$createdOn)) return false;
        if (this.getCreatedBy() != other.getCreatedBy()) return false;
        if (this.isCompleted() != other.isCompleted()) return false;
        final Object this$completedOn = this.getCompletedOn();
        final Object other$completedOn = other.getCompletedOn();
        if (this$completedOn == null ? other$completedOn != null : !this$completedOn.equals(other$completedOn)) return false;
        final Object this$config = this.getConfig();
        final Object other$config = other.getConfig();
        if (this$config == null ? other$config != null : !this$config.equals(other$config)) return false;
        final Object this$configIds = this.getConfigIds();
        final Object other$configIds = other.getConfigIds();
        if (this$configIds == null ? other$configIds != null : !this$configIds.equals(other$configIds)) return false;
        if (this.getPassedCount() != other.getPassedCount()) return false;
        if (this.getBlockedCount() != other.getBlockedCount()) return false;
        if (this.getUntestedCount() != other.getUntestedCount()) return false;
        if (this.getRetestCount() != other.getRetestCount()) return false;
        if (this.getFailedCount() != other.getFailedCount()) return false;
        if (this.getCustomStatus1Count() != other.getCustomStatus1Count()) return false;
        if (this.getCustomStatus2Count() != other.getCustomStatus2Count()) return false;
        if (this.getCustomStatus3Count() != other.getCustomStatus3Count()) return false;
        if (this.getCustomStatus4Count() != other.getCustomStatus4Count()) return false;
        if (this.getCustomStatus5Count() != other.getCustomStatus5Count()) return false;
        if (this.getCustomStatus6Count() != other.getCustomStatus6Count()) return false;
        if (this.getCustomStatus7Count() != other.getCustomStatus7Count()) return false;
        return true;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    protected boolean canEqual(final Object other) {
        return other instanceof Run;
    }

    @Override
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + this.getId();
        final Object $name = this.getName();
        result = result * PRIME + ($name == null ? 0 : $name.hashCode());
        final Object $description = this.getDescription();
        result = result * PRIME + ($description == null ? 0 : $description.hashCode());
        final Object $url = this.getUrl();
        result = result * PRIME + ($url == null ? 0 : $url.hashCode());
        result = result * PRIME + this.getProjectId();
        final Object $planId = this.getPlanId();
        result = result * PRIME + ($planId == null ? 0 : $planId.hashCode());
        final Object $suiteId = this.getSuiteId();
        result = result * PRIME + ($suiteId == null ? 0 : $suiteId.hashCode());
        final Object $milestoneId = this.getMilestoneId();
        result = result * PRIME + ($milestoneId == null ? 0 : $milestoneId.hashCode());
        final Object $assignedtoId = this.getAssignedtoId();
        result = result * PRIME + ($assignedtoId == null ? 0 : $assignedtoId.hashCode());
        final Object $includeAll = this.getIncludeAll();
        result = result * PRIME + ($includeAll == null ? 0 : $includeAll.hashCode());
        final Object $caseIds = this.getCaseIds();
        result = result * PRIME + ($caseIds == null ? 0 : $caseIds.hashCode());
        final Object $createdOn = this.getCreatedOn();
        result = result * PRIME + ($createdOn == null ? 0 : $createdOn.hashCode());
        result = result * PRIME + this.getCreatedBy();
        result = result * PRIME + (this.isCompleted() ? 79 : 97);
        final Object $completedOn = this.getCompletedOn();
        result = result * PRIME + ($completedOn == null ? 0 : $completedOn.hashCode());
        final Object $config = this.getConfig();
        result = result * PRIME + ($config == null ? 0 : $config.hashCode());
        final Object $configIds = this.getConfigIds();
        result = result * PRIME + ($configIds == null ? 0 : $configIds.hashCode());
        result = result * PRIME + this.getPassedCount();
        result = result * PRIME + this.getBlockedCount();
        result = result * PRIME + this.getUntestedCount();
        result = result * PRIME + this.getRetestCount();
        result = result * PRIME + this.getFailedCount();
        result = result * PRIME + this.getCustomStatus1Count();
        result = result * PRIME + this.getCustomStatus2Count();
        result = result * PRIME + this.getCustomStatus3Count();
        result = result * PRIME + this.getCustomStatus4Count();
        result = result * PRIME + this.getCustomStatus5Count();
        result = result * PRIME + this.getCustomStatus6Count();
        result = result * PRIME + this.getCustomStatus7Count();
        return result;
    }

    @Override
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String toString() {
        return "Run(id=" + this.getId() + ", name=" + this.getName() + ", description=" + this.getDescription() + ", url=" + this.getUrl() + ", projectId=" + this.getProjectId() + ", planId=" + this.getPlanId() + ", suiteId=" + this.getSuiteId() + ", milestoneId=" + this.getMilestoneId() + ", assignedtoId=" + this.getAssignedtoId() + ", includeAll=" + this.getIncludeAll() + ", caseIds=" + this.getCaseIds() + ", createdOn=" + this.getCreatedOn() + ", createdBy=" + this.getCreatedBy() + ", isCompleted=" + this.isCompleted() + ", completedOn=" + this.getCompletedOn() + ", config=" + this.getConfig() + ", configIds=" + this.getConfigIds() + ", passedCount=" + this.getPassedCount() + ", blockedCount=" + this.getBlockedCount() + ", untestedCount=" + this.getUntestedCount() + ", retestCount=" + this.getRetestCount() + ", failedCount=" + this.getFailedCount() + ", customStatus1Count=" + this.getCustomStatus1Count() + ", customStatus2Count=" + this.getCustomStatus2Count() + ", customStatus3Count=" + this.getCustomStatus3Count() + ", customStatus4Count=" + this.getCustomStatus4Count() + ", customStatus5Count=" + this.getCustomStatus5Count() + ", customStatus6Count=" + this.getCustomStatus6Count() + ", customStatus7Count=" + this.getCustomStatus7Count() + ")";
    }

    @JsonIgnore
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public boolean isCompleted() {
        return this.isCompleted;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy