@Override public void handle(ActionContext context) { JSONObject json = JSON.parseObject(context.body()); JSONArray fixtures = json.getJSONArray("fixtures"); test.loadFixtures((List) fixtures); H.Response resp = context.resp(); resp.status(H.Status.OK); resp.commit(); }
@Override public void handle(ActionContext context) { JSONObject json = JSON.parseObject(context.body()); JSONArray fixtures = json.getJSONArray("fixtures"); e2e.loadFixtures((List) fixtures); H.Response resp = context.resp(); resp.status(H.Status.OK); resp.commit(); }
@Override public void handle(ActionContext context) { JSONObject json = JSON.parseObject(context.body()); JSONArray fixtures = json.getJSONArray("fixtures"); test.loadFixtures((List) fixtures); H.Response resp = context.resp(); resp.status(H.Status.OK); resp.commit(); }
@Override public void handle(ActionContext context) { e2e.clearFixtures(); H.Response resp = context.resp(); resp.status(H.Status.NO_CONTENT); resp.commit(); }
@Override public void handle(ActionContext context) { test.clearFixtures(); H.Response resp = context.resp(); resp.status(H.Status.NO_CONTENT); resp.commit(); }
@Override public void handle(ActionContext context) { H.Response resp = context.prepareRespForResultEvaluation(); if (context.isAjax()) { resp.status(H.Status.FOUND_AJAX); } else { resp.status(H.Status.MOVED_PERMANENTLY); } String path = context.paramVal(ParamNames.PATH); resp.header(H.Header.Names.LOCATION, url + path); }
@Override public void handle(ActionContext context) { test.clearFixtures(); H.Response resp = context.resp(); resp.status(H.Status.NO_CONTENT); resp.commit(); }
@Override public void handle(ActionContext context) { H.Response resp = context.prepareRespForResultEvaluation(); if (context.isAjax()) { resp.status(H.Status.FOUND_AJAX); } else { resp.status(H.Status.MOVED_PERMANENTLY); } String path = context.paramVal(ParamNames.PATH); resp.header(H.Header.Names.LOCATION, url + path); }