Coverage Report - com.nilhcem.fakesmtp.model.EmailModel
 
Classes in this File Line Coverage Branch Coverage Complexity
EmailModel
94%
18/19
N/A
1
 
 1  
 package com.nilhcem.fakesmtp.model;
 2  
 
 3  
 import java.util.Date;
 4  
 
 5  
 /**
 6  
  * A model representing a received email.
 7  
  * <p>
 8  
  * This object will be created and sent to observers by the {@code MailSaver} object.<br>
 9  
  * It contains useful data such as the content of the email and its path in the file system.
 10  
  * </p>
 11  
  *
 12  
  * @author Nilhcem
 13  
  * @since 1.0
 14  
  */
 15  1
 public final class EmailModel {
 16  
 
 17  
         private Date receivedDate;
 18  
         private String from;
 19  
         private String to;
 20  
         private String subject;
 21  
         private String emailStr;
 22  
         private String filePath;
 23  
 
 24  
         public Date getReceivedDate() {
 25  0
                 return receivedDate;
 26  
         }
 27  
         public void setReceivedDate(Date receivedDate) {
 28  1
                 this.receivedDate = receivedDate;
 29  1
         }
 30  
 
 31  
         public String getFrom() {
 32  1
                 return from;
 33  
         }
 34  
         public void setFrom(String from) {
 35  1
                 this.from = from;
 36  1
         }
 37  
 
 38  
         public String getTo() {
 39  2
                 return to;
 40  
         }
 41  
         public void setTo(String to) {
 42  1
                 this.to = to;
 43  1
         }
 44  
 
 45  
         public String getSubject() {
 46  1
                 return subject;
 47  
         }
 48  
         public void setSubject(String subject) {
 49  1
                 this.subject = subject;
 50  1
         }
 51  
 
 52  
         public String getEmailStr() {
 53  2
                 return emailStr;
 54  
         }
 55  
         public void setEmailStr(String emailStr) {
 56  1
                 this.emailStr = emailStr;
 57  1
         }
 58  
 
 59  
         public String getFilePath() {
 60  4
                 return filePath;
 61  
         }
 62  
         public void setFilePath(String filePath) {
 63  1
                 this.filePath = filePath;
 64  1
         }
 65  
 }