}
Notary.verifyAll(agent, applicant, dob, pointsI, location, req.getParameter("date"), type, toVerify.toArray(new Name[toVerify.size()]), cs.getCountry());
- Outputable result = new TranslateCommand("Verification complete.");
+
+ Outputable result = SprintfCommand.createSimple("Verification of user with email address {0} and {1} verification points complete.", applicant.getEmail(), points);
if (isWithPasswordReset()) {
Language langApplicant = Language.getInstance(applicant.getPreferredLocale());
String method = langApplicant.getTranslation("A password reset was triggered. If you did a password reset by verification, please enter your secret password using this form:");
@Test
public void testVerifyForm() throws IOException {
- executeSuccess("date=" + validVerificationDateString() + "&location=testcase&countryCode=DE&certify=1&rules=1&assertion=1&points=10");
+ String body = executeSuccess("date=" + validVerificationDateString() + "&location=testcase&countryCode=DE&certify=1&rules=1&assertion=1&points=10");
+ assertThat(body, containsString("10"));
+ assertThat(body, containsString(applicantM));
}
@Test
}
- private void executeSuccess(String query) throws MalformedURLException, IOException {
- assertThat(execute(query), hasNoError());
-
+ private String executeSuccess(String query) throws MalformedURLException, IOException {
+ String response = execute(query);
+ assertThat(response, hasNoError());
+ return response;
}
private String execute(String query) throws MalformedURLException, IOException {