diff --git a/src/main/Main.java b/src/main/Main.java index 5bf6945..e492905 100644 --- a/src/main/Main.java +++ b/src/main/Main.java @@ -14,7 +14,7 @@ public static void main(String[] args) { init(); - api.setupRestTest(Method.DELETE, queryParam, formParam, pathParam); + api.setupRestTest(Method.POST, queryParam, formParam, pathParam); api.doRestTest(); System.out.println(api.getResults()); System.out.println(api.getBeforeResults()); @@ -23,15 +23,14 @@ static private void init() { api.setAccount("http://nitta-lab-www.is.konan-u.ac.jp/CactusServer/rest/accounts"); - 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","c4qSX1aJRitZ3x2z1OHmZ0k2I9YXaQMIluDgDgdlkeeqt3bIskbEYBLeUC5xAtZw")); + pathParam.add("logout"); + formParam.add(new RestParam("token","c4qSX1aJRitZ3x2z1OHmZ0k2I9YXaQMIluDgDgdlkeeqt3bIskbEYBLeUC5xAtZw")); } }