use of org.mobicents.slee.resource.diameter.cca.CreditControlServerSessionImpl in project jain-slee.diameter by RestComm.
the class CCAActivityAnswerCreationTest method testCCAServerActivityAnswerCreation.
@Test
public void testCCAServerActivityAnswerCreation() throws Exception {
CCASessionFactoryImpl ccaSF = new CCASessionFactoryImpl();
ServerCCASessionImpl session = new ServerCCASessionImpl(new ICCASessionDataImpl(), ccaSF, (ISessionFactory) stack.getSessionFactory(), new LocalServerCCASessionListenerImpl(), ccaSF, ccaSF);
CreditControlMessageFactoryImpl ccaMessageFactory = new CreditControlMessageFactoryImpl(baseMessageFactory, session.getSessions().get(0), stack, ccaAvpFactory);
ArrayList<DiameterMessage> list = new ArrayList<DiameterMessage>();
list.add(ccaMessageFactory.createCreditControlRequest());
CreditControlServerSessionImpl activity = new CreditControlServerSessionImpl(ccaMessageFactory, ccaAvpFactory, session, null, null);
DiameterActivityAnswerCreationHelper.testAnswerCreation(activity, "lastRequest", list);
}
Aggregations