1 | package fr.sii.ogham.email.sendgrid.v4.sender.impl.sendgrid.compat; | |
2 | ||
3 | import com.sendgrid.Attachments; | |
4 | ||
5 | /** | |
6 | * Compatibility wrapper that wraps {@link Attachments} instance and delegates | |
7 | * operations to it. | |
8 | * | |
9 | * @author Aurélien Baudet | |
10 | * @see CompatUtil | |
11 | * @see CompatFactory | |
12 | */ | |
13 | public class WrongPackageNameAttachmentsCompat implements AttachmentsCompat { | |
14 | private final Attachments delegate; | |
15 | | |
16 | public WrongPackageNameAttachmentsCompat() { | |
17 | super(); | |
18 | this.delegate = new Attachments(); | |
19 | } | |
20 | ||
21 | @Override | |
22 | public void setContent(String encodeToString) { | |
23 |
1
1. setContent : removed call to com/sendgrid/Attachments::setContent → NO_COVERAGE |
delegate.setContent(encodeToString); |
24 | } | |
25 | ||
26 | @Override | |
27 | public void setContentId(String cid) { | |
28 |
1
1. setContentId : removed call to com/sendgrid/Attachments::setContentId → NO_COVERAGE |
delegate.setContentId(cid); |
29 | } | |
30 | ||
31 | @Override | |
32 | public void setDisposition(String disposition) { | |
33 |
1
1. setDisposition : removed call to com/sendgrid/Attachments::setDisposition → NO_COVERAGE |
delegate.setDisposition(disposition); |
34 | } | |
35 | ||
36 | @Override | |
37 | public void setFilename(String name) { | |
38 |
1
1. setFilename : removed call to com/sendgrid/Attachments::setFilename → NO_COVERAGE |
delegate.setFilename(name); |
39 | } | |
40 | ||
41 | @Override | |
42 | public void setType(String mimetype) { | |
43 |
1
1. setType : removed call to com/sendgrid/Attachments::setType → NO_COVERAGE |
delegate.setType(mimetype); |
44 | } | |
45 | ||
46 | public Attachments getDelegate() { | |
47 |
1
1. getDelegate : replaced return value with null for fr/sii/ogham/email/sendgrid/v4/sender/impl/sendgrid/compat/WrongPackageNameAttachmentsCompat::getDelegate → NO_COVERAGE |
return delegate; |
48 | } | |
49 | ||
50 | } | |
Mutations | ||
23 |
1.1 |
|
28 |
1.1 |
|
33 |
1.1 |
|
38 |
1.1 |
|
43 |
1.1 |
|
47 |
1.1 |