1 5 package org.exoplatform.services.communication.sms.mock; 6 7 import org.exoplatform.services.communication.sms.SmsService; 8 import org.exoplatform.services.communication.sms.common.*; 9 import org.exoplatform.services.communication.sms.impl.SmsServiceImpl; 10 import org.exoplatform.services.communication.sms.model.*; 11 import org.exoplatform.services.communication.sms.provider.Provider; 12 import org.exoplatform.services.communication.sms.provider.Sender; 13 14 18 public class MockSmsService extends SmsServiceImpl implements SmsService { 19 20 public MockSmsService() { 21 super(); 22 } 23 24 public Messages createMessages() { 25 return super.createMessages(); 26 } 27 28 public Message createMessage() { 29 return super.createMessage(); 30 } 31 32 public Provider createProdatProvider(String username, String password) { 33 return super.createProdatProvider(username, password); 34 } 35 36 public Recipient createRecipient(String to) { 37 return super.createRecipient(to); 38 } 39 40 public Sender createSender(Provider provider) { 41 return new MockSender(provider); 42 } 43 44 public boolean sendSms(Provider provider, Messages messages) throws CommunicationError, RequestException, ResponseException, ConvertException { 45 return super.sendSms(provider, messages); 46 } 47 48 } | Popular Tags |