| 1 |
|
package test.mock.mail; |
| 2 |
|
|
| 3 |
|
import javax.mail.*; |
| 4 |
|
import javax.activation.DataHandler; |
| 5 |
|
import java.util.Enumeration; |
| 6 |
|
import java.util.Date; |
| 7 |
|
import java.io.IOException; |
| 8 |
|
import java.io.InputStream; |
| 9 |
|
import java.io.OutputStream; |
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
|
|
|
| 0% |
Uncovered Elements: 62 (62) |
Complexity: 41 |
Complexity Density: 1.95 |
|
| 15 |
|
public class MockMessage extends Message |
| 16 |
|
{ |
| 17 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 18 |
0
|
public void addFrom(Address[] addresses) throws MessagingException... |
| 19 |
|
{ |
| 20 |
|
} |
| 21 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 22 |
0
|
public void addHeader(String string, String string1) throws MessagingException... |
| 23 |
|
{ |
| 24 |
|
} |
| 25 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 26 |
0
|
public void addRecipients(RecipientType recipientType, Address[] addresses) throws MessagingException... |
| 27 |
|
{ |
| 28 |
|
} |
| 29 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 30 |
0
|
public Enumeration getAllHeaders() throws MessagingException... |
| 31 |
|
{ |
| 32 |
0
|
return null; |
| 33 |
|
} |
| 34 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 35 |
0
|
public Object getContent() throws IOException, MessagingException... |
| 36 |
|
{ |
| 37 |
0
|
return null; |
| 38 |
|
} |
| 39 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 40 |
0
|
public String getContentType() throws MessagingException... |
| 41 |
|
{ |
| 42 |
0
|
return null; |
| 43 |
|
} |
| 44 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 45 |
0
|
public DataHandler getDataHandler() throws MessagingException... |
| 46 |
|
{ |
| 47 |
0
|
return null; |
| 48 |
|
} |
| 49 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 50 |
0
|
public String getDescription() throws MessagingException... |
| 51 |
|
{ |
| 52 |
0
|
return null; |
| 53 |
|
} |
| 54 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 55 |
0
|
public String getDisposition() throws MessagingException... |
| 56 |
|
{ |
| 57 |
0
|
return null; |
| 58 |
|
} |
| 59 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 60 |
0
|
public String getFileName() throws MessagingException... |
| 61 |
|
{ |
| 62 |
0
|
return null; |
| 63 |
|
} |
| 64 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 65 |
0
|
public Flags getFlags() throws MessagingException... |
| 66 |
|
{ |
| 67 |
0
|
return null; |
| 68 |
|
} |
| 69 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 70 |
0
|
public Address[] getFrom() throws MessagingException... |
| 71 |
|
{ |
| 72 |
0
|
return new Address[0]; |
| 73 |
|
} |
| 74 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 75 |
0
|
public String[] getHeader(String string) throws MessagingException... |
| 76 |
|
{ |
| 77 |
0
|
return new String[0]; |
| 78 |
|
} |
| 79 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 80 |
0
|
public InputStream getInputStream() throws IOException, MessagingException... |
| 81 |
|
{ |
| 82 |
0
|
return null; |
| 83 |
|
} |
| 84 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 85 |
0
|
public int getLineCount() throws MessagingException... |
| 86 |
|
{ |
| 87 |
0
|
return 0; |
| 88 |
|
} |
| 89 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 90 |
0
|
public Enumeration getMatchingHeaders(String[] strings) throws MessagingException... |
| 91 |
|
{ |
| 92 |
0
|
return null; |
| 93 |
|
} |
| 94 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 95 |
0
|
public Enumeration getNonMatchingHeaders(String[] strings) throws MessagingException... |
| 96 |
|
{ |
| 97 |
0
|
return null; |
| 98 |
|
} |
| 99 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 100 |
0
|
public Date getReceivedDate() throws MessagingException... |
| 101 |
|
{ |
| 102 |
0
|
return null; |
| 103 |
|
} |
| 104 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 105 |
0
|
public Address[] getRecipients(RecipientType recipientType) throws MessagingException... |
| 106 |
|
{ |
| 107 |
0
|
return new Address[0]; |
| 108 |
|
} |
| 109 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 110 |
0
|
public Date getSentDate() throws MessagingException... |
| 111 |
|
{ |
| 112 |
0
|
return null; |
| 113 |
|
} |
| 114 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 115 |
0
|
public int getSize() throws MessagingException... |
| 116 |
|
{ |
| 117 |
0
|
return 0; |
| 118 |
|
} |
| 119 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 120 |
0
|
public String getSubject() throws MessagingException... |
| 121 |
|
{ |
| 122 |
0
|
return null; |
| 123 |
|
} |
| 124 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 125 |
0
|
public boolean isMimeType(String string) throws MessagingException... |
| 126 |
|
{ |
| 127 |
0
|
return false; |
| 128 |
|
} |
| 129 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 130 |
0
|
public void removeHeader(String string) throws MessagingException... |
| 131 |
|
{ |
| 132 |
|
} |
| 133 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 134 |
0
|
public Message reply(boolean b) throws MessagingException... |
| 135 |
|
{ |
| 136 |
0
|
return null; |
| 137 |
|
} |
| 138 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 139 |
0
|
public void saveChanges() throws MessagingException... |
| 140 |
|
{ |
| 141 |
|
} |
| 142 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 143 |
0
|
public void setContent(Multipart multipart) throws MessagingException... |
| 144 |
|
{ |
| 145 |
|
} |
| 146 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 147 |
0
|
public void setContent(Object object, String string) throws MessagingException... |
| 148 |
|
{ |
| 149 |
|
} |
| 150 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 151 |
0
|
public void setDataHandler(DataHandler dataHandler) throws MessagingException... |
| 152 |
|
{ |
| 153 |
|
} |
| 154 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 155 |
0
|
public void setDescription(String string) throws MessagingException... |
| 156 |
|
{ |
| 157 |
|
} |
| 158 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 159 |
0
|
public void setDisposition(String string) throws MessagingException... |
| 160 |
|
{ |
| 161 |
|
} |
| 162 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 163 |
0
|
public void setFileName(String string) throws MessagingException... |
| 164 |
|
{ |
| 165 |
|
} |
| 166 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 167 |
0
|
public void setFlags(Flags flags, boolean b) throws MessagingException... |
| 168 |
|
{ |
| 169 |
|
} |
| 170 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 171 |
0
|
public void setFrom() throws MessagingException... |
| 172 |
|
{ |
| 173 |
|
} |
| 174 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 175 |
0
|
public void setFrom(Address address) throws MessagingException... |
| 176 |
|
{ |
| 177 |
|
} |
| 178 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 179 |
0
|
public void setHeader(String string, String string1) throws MessagingException... |
| 180 |
|
{ |
| 181 |
|
} |
| 182 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 183 |
0
|
public void setRecipients(RecipientType recipientType, Address[] addresses) throws MessagingException... |
| 184 |
|
{ |
| 185 |
|
} |
| 186 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 187 |
0
|
public void setSentDate(Date date) throws MessagingException... |
| 188 |
|
{ |
| 189 |
|
} |
| 190 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 191 |
0
|
public void setSubject(String string) throws MessagingException... |
| 192 |
|
{ |
| 193 |
|
} |
| 194 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 195 |
0
|
public void setText(String string) throws MessagingException... |
| 196 |
|
{ |
| 197 |
|
} |
| 198 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 199 |
0
|
public void writeTo(OutputStream outputStream) throws IOException, MessagingException... |
| 200 |
|
{ |
| 201 |
|
} |
| 202 |
|
} |