String url = res.getRedirectUrl();
assertThat(url, is(nullValue()));
}
public void jsr303_multiple_validation_failed() {
WebResponse response = post("?positive=-5");
assertThat(response.status(), equalTo(HttpServletResponse.SC_OK));
FormResponseJson res = response.to(FormResponseJson.class).using(Json.class);
assertThat(res.isValid(), equalTo(false));
List<FieldErrorJson> errors = res.getErrors();
Collections.sort(errors);
assertThat(errors.size(), equalTo(2));