fieldValues.put("state", "OR");
fieldValues.put("postalCode", "97303");
fieldValues.put("country", "US");
// start SMTP Server
Wiser wiser = new Wiser();
wiser.setPort(getSmtpPort());
wiser.start();
doc = tester.submitForm(form, fieldValues);
Element errors = doc.getElementById("errorMessages");
if (errors != null) {
log.error(errors);
}
assertNull(doc.getElementById("errorMessages"));
// verify an account information e-mail was sent
assertEquals(1, wiser.getMessages().size());
wiser.stop();
//Element successMessages = doc.getElementById("successMessages");
//assertNotNull(successMessages);
//assertTrue(successMessages.toString().contains("added successfully"));
assertTrue(doc.toString().contains("added successfully"));