404をDELETEに限定
1 parent 06f1b65 commit 43ab69a2e5a57f7dcdce9c37d00cde3c83c6c880
y-ota authored on 13 Dec 2018
Showing 1 changed file
View
2
■■■
src/restfulchecker/RestChecker.java
private void judgeMethod() {
ArrayList<Boolean> identically = new ArrayList<>();
for (int i = 0; i < results.size(); i++) {
boolean isResponse = false;
if (responses.get(i) / 100 == 2 || responses.get(i) == 404) {
if (responses.get(i) / 100 == 2 || (responses.get(i) == 404 && type == Method.DELETE)) {
isResponse = results.get(i).equals(beforeResults.get(i));
}
identically.add(isResponse);
}