| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| EmailToPhoneImpl |
|
| 1.0;1 |
| 1 | package biz.xsoftware.examples.fullapi; | |
| 2 | ||
| 3 | /** | |
| 4 | */ | |
| 5 | public class EmailToPhoneImpl implements EmailToPhone | |
| 6 | { | |
| 7 | ||
| 8 | private PhoneFactory phoneFactory; | |
| 9 | ||
| 10 | /** | |
| 11 | * Creates an instance of EmailToPhoneImpl. | |
| 12 | * @param factory | |
| 13 | */ | |
| 14 | public EmailToPhoneImpl(PhoneFactory factory) | |
| 15 | 1 | { |
| 16 | 1 | this.phoneFactory = factory; |
| 17 | 1 | } |
| 18 | ||
| 19 | /** | |
| 20 | * @see biz.xsoftware.examples.fullapi.EmailToPhone#receivedHighPriorityEmail(java.lang.String, java.lang.String, java.lang.String) | |
| 21 | */ | |
| 22 | public void receivedHighPriorityEmail(String extension, String emailTitle, String emailContents) | |
| 23 | { | |
| 24 | 1 | Phone phone = phoneFactory.createPhone(); |
| 25 | 1 | phone.makeCall(extension); |
| 26 | 1 | } |
| 27 | ||
| 28 | ||
| 29 | } |