diff --git a/src/main/Main.java b/src/main/Main.java index 673e24c..9cbaa7a 100644 --- a/src/main/Main.java +++ b/src/main/Main.java @@ -12,6 +12,7 @@ static ArrayList formParam = new ArrayList<>(); static ArrayList pathParam = new ArrayList<>(); static NecessaryParam nes = new NecessaryParam(); + static RemoveJsonParam remove = new RemoveJsonParam(); static TestCactus get = new TestGETCactus(); static TestCactus post = new TestCreatePOSTCactus("f", "f", "f"); static TestCactus logout = new TestLogoutPOSTCactus("h41ZoL44toLq3Kg7B1aXreHjcjluAsoyz8DezqiXJ28s1atiGR5UHFOqi7Or3xOD"); @@ -19,11 +20,11 @@ static TestCactus delete = new TestDELETECactus("qF9bgKYZmw8P"); public static void main(String[] args) { - logout.start(); -// init(); +// logout.start(); + init(); // api.jsonAcquisition("src/main/you.json"); // System.out.println(api.getReadJson()); -// System.out.println(api.jsonRemove(api.getReadJson(), "snippet")); +// System.out.println(api.jsonRemove("{\"snippet\":{\"title\":\"aaa\",\"status\":\"e\"}}", remove)); // api.doRestTest(); // System.out.println(api.getResults()); } @@ -41,8 +42,10 @@ "ya29.GltwBvF7RosPhYHUlEnGaorRpqpdyD1nwRAm4m3rNihRsIZV5ZgZsL3PB_3jwMJTKF1huWkKkorUPiCsunGfMySzxfutzX4y0RN9f4iw8GxFyPHBEkPZHbxsgSXF")); api.getGetnesParam().setPathParams("playlists"); // api.setProperty("Content-type", "application/json"); - api.setRemoveParam("etag"); + api.setRemoveParam(new RemoveJsonParam("etag",new ArrayList<>())); api.setupRestTest(Method.GET, queryParam, formParam, pathParam); + remove.setRemoveParam("title"); + remove.setNode("snippet"); } }