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