1 5 package org.exoplatform.services.communication.sms.mock; 6 7 import org.exoplatform.services.communication.sms.common.CommunicationError; 8 import org.exoplatform.services.communication.sms.common.ResponseException; 9 import org.exoplatform.services.communication.sms.model.Messages; 10 import org.exoplatform.services.communication.sms.provider.*; 11 import org.exoplatform.services.communication.sms.provider.SenderImpl; 12 13 14 18 public class MockSender extends SenderImpl implements Sender { 19 20 public MockSender(Provider provider) { 21 super(provider); 22 } 23 24 27 public Messages send() throws CommunicationError, ResponseException { 28 Messenger messenger = new MockProdatMessenger(_provider); 29 messenger.service(_request, _response); 30 return _response.getMessages(); 31 } 32 } 33 | Popular Tags |