Newer
Older
RestfulChecker / src / testcase / TestPOSTCactus.java
y-ota on 3 Dec 2018 800 bytes testcaseを作成
package testcase;

import java.util.ArrayList;

import restfulchecker.*;
import restfulchecker.RestChecker.Method;

public class TestPOSTCactus {
	private RestChecker check = new RestChecker();
	private ArrayList<RestParam> query = new ArrayList<>();
	private ArrayList<RestParam> form = new ArrayList<>();
	private ArrayList<String> path = new ArrayList<>();

	public TestPOSTCactus(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();
	}
}