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

com.capitalone.dashboard.model.quality.CucumberJsonReport Maven / Gradle / Ivy

package com.capitalone.dashboard.model.quality;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.databind.JsonNode;

import java.util.List;

/**
 * Created by stevegal on 2019-03-24.
 */
public class CucumberJsonReport implements QualityVisitee {

    @Override
    public void accept(QualityVisitor visitor) {
        visitor.visit(this);
    }

    public static class Result {
        private long duration;
        private String status;

        public long getDuration() {
            return duration;
        }

        public String getStatus() {
            return status;
        }
    }

    public static class Step {
        private String keyword;
        private String name;
        private String line;
        private Result result;

        public String getKeyword() {
            return keyword;
        }

        public Result getResult() {
            return result;
        }

        public String getLine() {
            return line;
        }

        public String getName() {
            return name;
        }
    }

    public static class Tag {
        String name;

        public String getName() {
            return name;
        }
    }

    public static class Match {
        private JsonNode location;


        public JsonNode getLocation() {
            return location;
        }

    }

    public static class Condition {
        private Match match;
        private Result result;

        public Match getMatch() {
            return match;
        }

        public Result getResult() {
            return result;
        }

    }

    public static class Element {
        private String id;
        private String keyword;
        private String name;
        private List steps;
        private List tags;
        private List before;
        private List after;

        public String getKeyword() {
            return keyword;
        }

        public String getName() {
            return name;
        }

        public List getSteps() {
            return steps;
        }

        public String getId() {
            return id;
        }

        public List getAfter() {
            return after;
        }

        public List getBefore() {
            return before;
        }

        public List getTags() {
            return tags;
        }
    }

    public static class Feature {
        private String id;
        private String keyword;
        private String name;

        private List elements;

        public String getName() {
            return name;
        }

        public String getId() {
            return id;
        }

        public String getKeyword() {
            return keyword;
        }

        public List getElements() {
            return elements;
        }
    }

    @JsonCreator
    public CucumberJsonReport(List features) {
        this.features = features;
    }

    private List features;

    public List getFeatures() {
        return features;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy