diff --git a/src/main/Main.java b/src/main/Main.java index 2b1cd5f..5bf6945 100644 --- a/src/main/Main.java +++ b/src/main/Main.java @@ -14,18 +14,24 @@ public static void main(String[] args) { init(); - api.setupRestTest(Method.POST, queryParam, formParam, pathParam); + api.setupRestTest(Method.DELETE, queryParam, formParam, pathParam); api.doRestTest(); + System.out.println(api.getResults()); + System.out.println(api.getBeforeResults()); System.out.println(api.getJudgeResult()); } static private void init() { api.setAccount("http://nitta-lab-www.is.konan-u.ac.jp/CactusServer/rest/accounts"); - formParam.add(new RestParam("userID", "yyy")); - formParam.add(new RestParam("userName", "abc")); - formParam.add(new RestParam("userPass", "abc")); + pathParam.add("OyA7y0Lhikej"); +// formParam.add(new RestParam("userID", "test")); +// formParam.add(new RestParam("userPass", "test")); +// formParam.add(new RestParam("userName", "test")); +// formParam.add(new RestParam("userID", "g")); +// formParam.add(new RestParam("userPass", "g")); +// formParam.add(new RestParam("userName", "g")); // pathParam.add("logout"); -// formParam.add(new RestParam("token","d4pEuHxDUbzRJswWImVjWlbFJZDsUI8QItMVfjoRQt8lj2J7Y7XWR4QlyMlx77ya")); +// formParam.add(new RestParam("token","c4qSX1aJRitZ3x2z1OHmZ0k2I9YXaQMIluDgDgdlkeeqt3bIskbEYBLeUC5xAtZw")); } }