use of org.jsmpp.PDUStringException in project camel by apache.
the class MessageReceiverListenerImplTest method setUp.
@Before
public void setUp() {
endpoint = createMock(SmppEndpoint.class);
processor = createMock(Processor.class);
exceptionHandler = createMock(ExceptionHandler.class);
listener = new MessageReceiverListenerImpl(endpoint, processor, exceptionHandler);
listener.setMessageIDGenerator(new MessageIDGenerator() {
public MessageId newMessageId() {
try {
return new MessageId("1");
} catch (PDUStringException e) {
throw new RuntimeException(e);
}
}
});
}
Aggregations