diff --git a/src/main/Main.java b/src/main/Main.java index c81ee61..31a8aa1 100644 --- a/src/main/Main.java +++ b/src/main/Main.java @@ -19,12 +19,13 @@ "h41ZoL44toLq3Kg7B1aXreHjcjluAsoyz8DezqiXJ28s1atiGR5UHFOqi7Or3xOD"); static TestCactus put = new TestPUTCactus("f", "f"); static TestCactus delete = new TestDELETECactus("qF9bgKYZmw8P"); - static TestYouTube list = new TestGETYouTube("ya29.GltxBj_5n_s4vQREqFTthpK2VzHsHlWA2IM23VI-_Ba8c4gHe5a7WAPehjVE31mhuesxWnlNGWND2RAJ5zTz3-PlItqutga6rWOOivXYusklhHha0yavLB2Ms0vV"); + static TestYouTube list = new TestGETYouTube( + "ya29.GltxBj_5n_s4vQREqFTthpK2VzHsHlWA2IM23VI-_Ba8c4gHe5a7WAPehjVE31mhuesxWnlNGWND2RAJ5zTz3-PlItqutga6rWOOivXYusklhHha0yavLB2Ms0vV"); public static void main(String[] args) { list.start(); // init(); -// api.jsonAcquisition("src/main/you.json"); +// api.jsonAcquisition("src/testcase/post.json"); // System.out.println(api.getReadJson()); // System.out.println(api.jsonRemove( // "[{\"snippet\":{\"title\":\"aaa\",\"description\":\"RestfulChecker`s Test\"},\"status\":{\"privacyStatus\":\"private\"}},{\"snippet\":{\"title\":\"aaa\",\"description\":\"RestfulChecker`s Test\"},\"status\":{\"privacyStatus\":\"private\"}}]", @@ -45,7 +46,7 @@ api.getGetnesParam().setQueryParams(new RestParam("access_token", "ya29.GltxBj_5n_s4vQREqFTthpK2VzHsHlWA2IM23VI-_Ba8c4gHe5a7WAPehjVE31mhuesxWnlNGWND2RAJ5zTz3-PlItqutga6rWOOivXYusklhHha0yavLB2Ms0vV")); api.getGetnesParam().setPathParams("playlists"); -// api.setProperty("Content-type", "application/json"); + api.setProperty("Content-type", "application/json"); api.setRemoveParam(new RemoveJsonParam("etag", new ArrayList<>())); api.setupRestTest(Method.GET, queryParam, formParam, pathParam); remove.setRemoveParam("privacyStatus");