Search in sources :

Example 6 with Mail

use of cn.edu.zjnu.acm.judge.domain.Mail in project judge by zjnu-acm.

the class MailControllerTest method newMail.

private Mail newMail(String from, String to) {
    Mail mail = Mail.builder().from(from).to(to).title("title5").content("content12").build();
    mailMapper.save(mail);
    return mail;
}
Also used : Mail(cn.edu.zjnu.acm.judge.domain.Mail)

Aggregations

Mail (cn.edu.zjnu.acm.judge.domain.Mail)6 GetMapping (org.springframework.web.bind.annotation.GetMapping)5 MessageException (cn.edu.zjnu.acm.judge.exception.MessageException)3 BusinessException (cn.edu.zjnu.acm.judge.exception.BusinessException)1