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

io.qameta.allure.model.FixtureResult Maven / Gradle / Ivy

There is a newer version: 2.29.0
Show newest version
/*
 *  Copyright 2019 Qameta Software OÜ
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package io.qameta.allure.model;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * POJO that stores fixture result information.
 */
@SuppressWarnings("deprecation")
public class FixtureResult extends ExecutableItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @Override
    public FixtureResult setName(final String value) {
        super.setName(value);
        return this;
    }

    @Override
    public FixtureResult setStatus(final Status value) {
        super.setStatus(value);
        return this;
    }

    @Override
    public FixtureResult setStatusDetails(final StatusDetails value) {
        super.setStatusDetails(value);
        return this;
    }

    @Override
    public FixtureResult setStage(final Stage value) {
        super.setStage(value);
        return this;
    }

    @Override
    public FixtureResult setDescription(final String value) {
        super.setDescription(value);
        return this;
    }

    @Override
    public FixtureResult setDescriptionHtml(final String value) {
        super.setDescriptionHtml(value);
        return this;
    }

    @Override
    public FixtureResult setStart(final Long value) {
        super.setStart(value);
        return this;
    }

    @Override
    public FixtureResult setStop(final Long value) {
        super.setStop(value);
        return this;
    }

    @Override
    @JsonProperty
    public FixtureResult setSteps(final List steps) {
        super.setSteps(steps);
        return this;
    }

    /**
     * @deprecated use {@link #setSteps(List)} instead.
     */
    @Deprecated
    @Override
    @JsonIgnore
    public FixtureResult setSteps(final StepResult... values) {
        super.setSteps(values);
        return this;
    }

    /**
     * @deprecated use {@link #setSteps(List)} instead.
     */
    @Deprecated
    @Override
    @JsonIgnore
    public FixtureResult setSteps(final Collection values) {
        super.setSteps(values);
        return this;
    }

    @Override
    @JsonProperty
    public FixtureResult setAttachments(final List attachments) {
        super.setAttachments(attachments);
        return this;
    }

    /**
     * @deprecated use {@link #setAttachments(List)} instead.
     */
    @Deprecated
    @Override
    @JsonIgnore
    public FixtureResult setAttachments(final Attachment... values) {
        super.setAttachments(values);
        return this;
    }

    /**
     * @deprecated use {@link #setAttachments(List)} instead.
     */
    @Deprecated
    @Override
    @JsonIgnore
    public FixtureResult setAttachments(final Collection values) {
        super.setAttachments(values);
        return this;
    }

    @Override
    @JsonProperty
    public FixtureResult setParameters(final List parameters) {
        super.setParameters(parameters);
        return this;
    }

    /**
     * @deprecated use {@link #setParameters(List)} instead.
     */
    @Override
    @Deprecated
    @JsonIgnore
    public FixtureResult setParameters(final Parameter... values) {
        super.setParameters(values);
        return this;
    }

    /**
     * @deprecated use {@link #setParameters(List)} instead.
     */
    @Deprecated
    @Override
    @JsonIgnore
    public FixtureResult setParameters(final Collection values) {
        super.setParameters(values);
        return this;
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withName(final String value) {
        return setName(value);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withStatus(final Status value) {
        return setStatus(value);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withStatusDetails(final StatusDetails value) {
        return setStatusDetails(value);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withStage(final Stage value) {
        return setStage(value);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withDescription(final String value) {
        return setDescription(value);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withDescriptionHtml(final String value) {
        return setDescriptionHtml(value);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withStart(final Long value) {
        return setStart(value);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withStop(final Long value) {
        return setStop(value);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withSteps(final StepResult... values) {
        return setSteps(values);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withSteps(final Collection values) {
        return setSteps(values);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withSteps(final List steps) {
        return setSteps(steps);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withAttachments(final Attachment... values) {
        return setAttachments(values);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withAttachments(final Collection values) {
        return setAttachments(values);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withAttachments(final List attachments) {
        return setAttachments(attachments);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withParameters(final Parameter... values) {
        return setParameters(values);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withParameters(final Collection values) {
        return setParameters(values);
    }

    /**
     * @deprecated use set method. Scheduled to removal in 3.0 release.
     */
    @Deprecated
    @Override
    public FixtureResult withParameters(final List parameters) {
        return setParameters(parameters);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy