public final void testBuildMailFromClassPathNotExist() throws Exception {
String classPath = "/com/ozacc/mail/testtest-mail1.xml";
try {
- Mail result = builder.buildMail(classPath);
+ builder.buildMail(classPath);
fail("This should never be called.");
} catch (MailBuildException expected) {
// success
String path = "src/test/java/com/ozacc/mail/testtest-mail1.xml";
File file = new File(path);
try {
- Mail result = builder.buildMail(file);
+ builder.buildMail(file);
fail("This should never be called.");
} catch (MailBuildException expected) {
// success
public final void testBuildMailFromClassPathInvalidXML() throws Exception {
String classPath = "/com/ozacc/mail/test-mail2-invalid.xml";
try {
- Mail result = builder.buildMail(classPath);
+ builder.buildMail(classPath);
fail("This should never be called.");
} catch (MailBuildException expected) {
// success
assertEquals("2通目", result2.getText());
try {
- Mail result3 = builder.buildMail(file, "サード");
+ builder.buildMail(file, "サード");
} catch (MailBuildException expected) {
}