Newer
Older
RestfulChecker / src / main / Main.java
y-ota on 6 Nov 2018 841 bytes いくつか関数を追加
package main;

import java.util.ArrayList;

import main.RestApi.Method;

public class Main {

	public static void main(String[] args) {
		RestApi api = new RestApi();
		ArrayList<RestParam> queryParam = new ArrayList<>();
		ArrayList<RestParam> formParam = new ArrayList<>();
		ArrayList<String> pathParam = new ArrayList<>();
		api.setAccount("http://nitta-lab-www.is.konan-u.ac.jp/CactusServer/rest/accounts/");
		formParam.add(new RestParam("userID", "dee"));
		formParam.add(new RestParam("userName", "abc"));
		formParam.add(new RestParam("userPass", "abc"));
		api.setupRestTest(Method.GET, queryParam, formParam, pathParam);
		api.doRestTest();
		for (String result : api.getResults()) {
			System.out.println(result);
		}
		System.out.println(api.getJudgeResult());
	}
	
	private void init() {
		
	}

}