diff --git a/src/main/Main.java b/src/main/Main.java index 79279d5..f346985 100644 --- a/src/main/Main.java +++ b/src/main/Main.java @@ -11,16 +11,13 @@ ArrayList queryParam = new ArrayList<>(); ArrayList formParam = new ArrayList<>(); ArrayList pathParam = new ArrayList<>(); - final int ACCOUNT_NUM = 2; - for (int i = 0; i < ACCOUNT_NUM; i++) { - api.setAccount("http://nitta-lab-www.is.konan-u.ac.jp:8080/CactusServer/rest/accounts/"); - } + api.setAccount("http://nitta-lab-www.is.konan-u.ac.jp/CactusServer/rest/accounts/"); formParam.add(new RestParam("userID", "dee")); formParam.add(new RestParam("userName", "abc")); formParam.add(new RestParam("userPass", "abc")); api.setupRestTest(Method.GET, queryParam, formParam, pathParam); api.doRestTest(); - for (int i = 0; i < ACCOUNT_NUM; i++) { + for (int i = 0; i < RestApi.ACCOUNT_NUM; i++) { System.out.println(api.getResult(i)); } }