package testcase; import java.util.ArrayList; import restfulchecker.*; import restfulchecker.RestChecker.Method; public class TestCreatePOSTCactus { private RestChecker check = new RestChecker(); private ArrayList<RestParam> query = new ArrayList<>(); private ArrayList<RestParam> form = new ArrayList<>(); private ArrayList<String> path = new ArrayList<>(); public TestCreatePOSTCactus(String userID, String userName, String userPass) { check.setAccount("http://nitta-lab-www.is.konan-u.ac.jp/CactusServer/rest/accounts"); form.add(new RestParam("userID", userID)); form.add(new RestParam("userName", userName)); form.add(new RestParam("userPass", userPass)); check.setupRestTest(Method.POST, query, form, path); } public void start() { check.doRestTest(); } }