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

automation.library.conversion2jmx.postman2jmx.model.postman.PostmanItem Maven / Gradle / Ivy

Go to download

The 'conversion2jmx' library to helps creating JMeter JMX files from different sources

The newest version!
package automation.library.conversion2jmx.postman2jmx.model.postman;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import automation.library.conversion2jmx.common.utils.ValueUtils;

import java.util.ArrayList;
import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public class PostmanItem implements Comparable {

    @JsonProperty("item")
    List items = new ArrayList<>();

    @JsonProperty("name")
    private String name;

    @JsonProperty("request")
    private PostmanRequest request;

    @JsonProperty("event")
    private List events = new ArrayList<>();

    public PostmanItem() {
    }

    public PostmanItem(String name, PostmanRequest request, List events) {
        this.name = name;
        this.request = request;
        this.events = events;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = ValueUtils.value(name);
    }

    public PostmanRequest getRequest() {
        return request;
    }

    public void setRequest(PostmanRequest request) {
        this.request = request;
    }

    public List getItems() {
        return items;
    }

    public void setItems(List items) {
        this.items = items;
    }

    public List getEvents() {
        return events;
    }

    public void setEvents(List events) {
        this.events = events;
    }

    @Override
    public int compareTo(PostmanItem o) {
        return this.name.compareTo(o.name);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy