diff --git a/src/restfulchecker/RestChecker.java b/src/restfulchecker/RestChecker.java index a2cb794..7b2a1e3 100644 --- a/src/restfulchecker/RestChecker.java +++ b/src/restfulchecker/RestChecker.java @@ -154,9 +154,9 @@ if (isSafety && isIdempotency) { judgeResult = "GET"; } else if (!isSafety && isIdempotency) { - if(!isResponse && type == Method.POST){ + if (!isResponse && type == Method.POST) { judgeResult = "POST"; - }else { + } else { judgeResult = "PUT or DELETE"; } } else { @@ -167,10 +167,10 @@ if (isRemove) { System.out.println("It`s Quasi " + judgeResult); } - if(!isResponse && type == Method.POST){ + if (!isResponse && type == Method.POST) { System.out.println("It`s POST Once Exactry"); } - }else { + } else { System.out.println("WARNING!! Possibly:" + judgeResult); } } @@ -186,6 +186,9 @@ for (String param : resourceParam.getPathParams()) { account.addPathParam(param); } + for (int i = 0; i < keys.size(); i++) { + account.setRequestPropertie(keys.get(i), values.get(i)); + } account.doAnything(); String receive = account.doReceive(); for (RemoveJsonParam remove : removeParam) {