com.qa.framework.bean.ExtraCheck Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smart-api-framework Show documentation
Show all versions of smart-api-framework Show documentation
Support web service api automaton test based on testng and httpclient
package com.qa.framework.bean;
import java.util.ArrayList;
import java.util.List;
/**
* 封装自定义的检查方法
* 需要在用例里面实现
* Created by apple on 15/11/18.
*/
public class ExtraCheck {
private List functionList;
/**
* Gets function list.
*
* @return the function list
*/
public List getFunctionList() {
return functionList;
}
/**
* Sets function list.
*
* @param functionList the function list
*/
public void setFunctionList(List functionList) {
this.functionList = functionList;
}
/**
* Add function.
*
* @param function the function
*/
public void addFunction(Function function) {
if (functionList == null) {
functionList = new ArrayList();
}
functionList.add(function);
}
}