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

automation.library.conversion2jmx.postman2jmx.model.postman.PostmanScript 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 com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import automation.library.conversion2jmx.postman2jmx.model.deserializer.ExecDeserializer;

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

@JsonIgnoreProperties(ignoreUnknown = true)
public class PostmanScript {

    @JsonProperty("type")
    private String type;

    @JsonProperty(value = "exec")
    private List execs = new ArrayList<>();


    public PostmanScript() {
    }

    public PostmanScript(String type, List execs) {
        this.type = type;
        this.execs = execs;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List getExecs() {
        return execs;
    }

    @JsonDeserialize(using = ExecDeserializer.class)
    public void setExecs(ExecDeserializer.ExecData execData) {
        this.execs.addAll(execData.getValues());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy