package testcase;
import java.util.ArrayList;
import restfulchecker.*;
import restfulchecker.RestChecker.Method;
public class TestPUTCactus {
private RestChecker check = new RestChecker();
private ArrayList<RestParam> query = new ArrayList<>();
private ArrayList<RestParam> form = new ArrayList<>();
private ArrayList<String> path = new ArrayList<>();
public TestPUTCactus(String userID, 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("userPass", userPass));
check.setupRestTest(Method.PUT, query, form, path);
check.setRemoveParam("token");
}
public void start() {
check.doRestTest();
System.out.println(check.getResults());
}
}