eq((byte) 1),
eq("090830230627004+"),
eq("090831232000004+"),
eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE)),
eq((byte) 0),
eq(new GeneralDataCoding(
false,
false,
MessageClass.CLASS1,
Alphabet.ALPHA_DEFAULT)),
eq((byte) 0),
aryEq("Hello SMPP world!".getBytes("ISO-8859-1"))))
.andThrow(new IOException("connection broken"));
expect(endpoint.getConnectionString())
.andReturn("smpp://smppclient@localhost:2775")
.times(2);
session.close(); // expectation without return value
expect(endpoint.getConnectionString())
.andReturn("smpp://smppclient@localhost:2775");
doStartExpectations();
submitSmExpectations(exchange, binding, submitSm);
expect(session.submitShortMessage(
eq("CMT"),
eq(TypeOfNumber.UNKNOWN),
eq(NumberingPlanIndicator.UNKNOWN),
eq("1616"),
eq(TypeOfNumber.UNKNOWN),
eq(NumberingPlanIndicator.UNKNOWN),
eq("1717"),
isA(ESMClass.class),
eq((byte) 0),
eq((byte) 1),
eq("090830230627004+"),
eq("090831232000004+"),
eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE)),
eq((byte) 0),
eq(new GeneralDataCoding(
false,
false,
MessageClass.CLASS1,
Alphabet.ALPHA_DEFAULT)),
eq((byte) 0),