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

com.qa.framework.bean.DataConfig Maven / Gradle / Ivy

There is a newer version: 2.5
Show newest version
package com.qa.framework.bean;

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

/**
 * Created by apple on 15/11/18.
 */
public class DataConfig {
    private List testDataList;

    private Map testDataMap;
    private String url;
    private String httpMethod = "get";

    /**
     * Instantiates a new Data config.
     *
     * @param testDataList the test data list
     */
    public DataConfig(List testDataList) {
        this.testDataList = testDataList;
    }

    /**
     * Instantiates a new Data config.
     */
    public DataConfig() {
    }

    /**
     * Gets url.
     *
     * @return the url
     */
    public String getUrl() {
        return url;
    }

    /**
     * Sets url.
     *
     * @param url the url
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * Gets http method.
     *
     * @return the http method
     */
    public String getHttpMethod() {
        return httpMethod;
    }

    /**
     * Sets http method.
     *
     * @param httpMethod the http method
     */
    public void setHttpMethod(String httpMethod) {
        this.httpMethod = httpMethod;
    }

    /**
     * Gets test data list.
     *
     * @return the test data list
     */
    public List getTestDataList() {
        return testDataList;
    }

    /**
     * Add test data.
     *
     * @param testData the test data
     */
    public void addTestData(TestData testData) {
        if (testDataList == null) {
            testDataList = new ArrayList();
        }
        testDataList.add(testData);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy