package main; import java.util.ArrayList; import restfulchecker.*; import restfulchecker.RestChecker.Method; import testcase.*; public class Main { static RestChecker api = new RestChecker(); static ArrayList<RestParam> queryParam = new ArrayList<>(); static ArrayList<RestParam> formParam = new ArrayList<>(); static ArrayList<String> pathParam = new ArrayList<>(); static TestGETCactus get = new TestGETCactus(); static TestPOSTCactus post = new TestPOSTCactus("f","f","f"); static TestPUTCactus put = new TestPUTCactus("f","f"); static TestDELETECactus delete = new TestDELETECactus("qF9bgKYZmw8P"); public static void main(String[] args) { // post.start(); init(); api.doRestTest(); System.out.println(api.getResults()); // System.out.println(api.getBeforeResults()); // System.out.println(api.getJudgeResult()); } static private void init() { api.setAccount("https://www.googleapis.com/youtube/v3"); // queryParam.add(new RestParam("key", "AIzaSyD5EI71SqPZhgdpwzlV0XTisGuKKtH5p6I")); // queryParam.add(new RestParam("id", "7lCDEYXw3mM")); queryParam.add(new RestParam("part", "snippet")); queryParam.add(new RestParam("access_token", "ya29.GltoBgshDGc5-hOiCBnKcrpu5vZvEOy-wSBhul7wyzcg8XpFWMWhymWADANBsx0FoG643I8DD855hYVUCMw8beOgGc4WyA0HQwfPcNQZR0nuYREsXOIj6O2UymPi")); pathParam.add("playlists"); api.setupRestTest(Method.POST, queryParam, formParam, pathParam); } }