HtmlCheckBoxInput precedenceBulk = page.getElementByName("ext_mailer_add_precedence_bulk");
assertNotNull("Precedence Bulk should be present", precedenceBulk);
assertFalse("Add precedence bulk should not be checked by default",
precedenceBulk.isChecked());
HtmlTextInput defaultRecipients = page.getElementByName("ext_mailer_default_recipients");
assertNotNull("Default Recipients should be present", defaultRecipients);
assertEquals("Default recipients should be blank by default",
"", defaultRecipients.getText());
HtmlTextInput defaultReplyTo = page.getElementByName("ext_mailer_default_replyto");
assertNotNull("Default Reply-to should be present", defaultReplyTo);
assertEquals("Default Reply-To should be blank by default",
"", defaultReplyTo.getText());
HtmlTextInput emergencyReroute = page.getElementByName("ext_mailer_emergency_reroute");
assertNotNull("Emergency Reroute should be present", emergencyReroute);
assertEquals("Emergency Reroute should be blank by default",
"", emergencyReroute.getText());
HtmlTextInput excludedRecipients = page.getElementByName("ext_mailer_excluded_committers");
assertNotNull("Excluded Recipients should be present", excludedRecipients);
assertEquals("Excluded Recipients should be blank by default",
"", excludedRecipients.getText());
HtmlTextInput defaultSubject = page.getElementByName("ext_mailer_default_subject");
assertNotNull("Default Subject should be present", defaultSubject);
assertEquals("Default Subject should be set",
"$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!",
defaultSubject.getText());
HtmlTextInput maxAttachmentSize = page.getElementByName("ext_mailer_max_attachment_size");
assertNotNull("Max attachment size should be present", maxAttachmentSize);
assertEquals("Max attachment size should be blank by default",
"", maxAttachmentSize.getText());
HtmlTextArea defaultContent = page.getElementByName("ext_mailer_default_body");
assertNotNull("Default content should be present", defaultContent);
assertEquals("Default content should be set by default",
"$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:\n\nCheck console output at $BUILD_URL to view the results.",