| 1 | package fr.sii.ogham.email.sendgrid.v4.sender.impl.sendgrid.compat; | |
| 2 | ||
| 3 | import com.sendgrid.helpers.mail.objects.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 CorrectPackageNameAttachmentsCompat implements AttachmentsCompat { | |
| 14 | private final Attachments delegate; | |
| 15 | ||
| 16 | public CorrectPackageNameAttachmentsCompat() { | |
| 17 | super(); | |
| 18 | this.delegate = new Attachments(); | |
| 19 | } | |
| 20 | ||
| 21 | @Override | |
| 22 | public void setContent(String encodeToString) { | |
| 23 |
2
1. setContent : removed call to com/sendgrid/helpers/mail/objects/Attachments::setContent → NO_COVERAGE 2. setContent : removed call to com/sendgrid/helpers/mail/objects/Attachments::setContent → KILLED |
delegate.setContent(encodeToString); |
| 24 | } | |
| 25 | ||
| 26 | @Override | |
| 27 | public void setContentId(String cid) { | |
| 28 |
2
1. setContentId : removed call to com/sendgrid/helpers/mail/objects/Attachments::setContentId → SURVIVED 2. setContentId : removed call to com/sendgrid/helpers/mail/objects/Attachments::setContentId → NO_COVERAGE |
delegate.setContentId(cid); |
| 29 | } | |
| 30 | ||
| 31 | @Override | |
| 32 | public void setDisposition(String disposition) { | |
| 33 |
2
1. setDisposition : removed call to com/sendgrid/helpers/mail/objects/Attachments::setDisposition → NO_COVERAGE 2. setDisposition : removed call to com/sendgrid/helpers/mail/objects/Attachments::setDisposition → KILLED |
delegate.setDisposition(disposition); |
| 34 | } | |
| 35 | ||
| 36 | @Override | |
| 37 | public void setFilename(String name) { | |
| 38 |
2
1. setFilename : removed call to com/sendgrid/helpers/mail/objects/Attachments::setFilename → NO_COVERAGE 2. setFilename : removed call to com/sendgrid/helpers/mail/objects/Attachments::setFilename → KILLED |
delegate.setFilename(name); |
| 39 | } | |
| 40 | ||
| 41 | @Override | |
| 42 | public void setType(String mimetype) { | |
| 43 |
2
1. setType : removed call to com/sendgrid/helpers/mail/objects/Attachments::setType → NO_COVERAGE 2. setType : removed call to com/sendgrid/helpers/mail/objects/Attachments::setType → KILLED |
delegate.setType(mimetype); |
| 44 | } | |
| 45 | ||
| 46 | public Attachments getDelegate() { | |
| 47 |
2
1. getDelegate : replaced return value with null for fr/sii/ogham/email/sendgrid/v4/sender/impl/sendgrid/compat/CorrectPackageNameAttachmentsCompat::getDelegate → NO_COVERAGE 2. getDelegate : replaced return value with null for fr/sii/ogham/email/sendgrid/v4/sender/impl/sendgrid/compat/CorrectPackageNameAttachmentsCompat::getDelegate → KILLED |
return delegate; |
| 48 | } | |
| 49 | ||
| 50 | } | |
Mutations | ||
| 23 |
1.1 2.2 |
|
| 28 |
1.1 2.2 |
|
| 33 |
1.1 2.2 |
|
| 38 |
1.1 2.2 |
|
| 43 |
1.1 2.2 |
|
| 47 |
1.1 2.2 |