Search in sources :

Example 16 with RoCreditControlRequest

use of net.java.slee.resource.diameter.ro.events.RoCreditControlRequest in project jain-slee.diameter by RestComm.

the class RoMessageFactoryImpl method createRoCreditControlRequest.

public RoCreditControlRequest createRoCreditControlRequest(String sessionId) /*, CcRequestType type*/
{
    RoCreditControlRequest ro = this.createRoCreditControlRequest();
    ro.setSessionId(sessionId);
    // ro.setCcRequestType(type);
    return ro;
}
Also used : RoCreditControlRequest(net.java.slee.resource.diameter.ro.events.RoCreditControlRequest)

Example 17 with RoCreditControlRequest

use of net.java.slee.resource.diameter.ro.events.RoCreditControlRequest in project jain-slee.diameter by RestComm.

the class RoFactoriesTest method testGettersAndSettersCCR.

@Test
public void testGettersAndSettersCCR() throws Exception {
    RoCreditControlRequest ccr = roMessageFactory.createRoCreditControlRequest();
    int nFailures = RoAvpAssistant.INSTANCE.testMethods(ccr, RoCreditControlRequest.class);
    assertEquals("Some methods have failed. See logs for more details.", 0, nFailures);
}
Also used : RoCreditControlRequest(net.java.slee.resource.diameter.ro.events.RoCreditControlRequest) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Example 18 with RoCreditControlRequest

use of net.java.slee.resource.diameter.ro.events.RoCreditControlRequest in project jain-slee.diameter by RestComm.

the class RoFactoriesTest method isRequestCCR.

@Test
public void isRequestCCR() throws Exception {
    RoCreditControlRequest ccr = roMessageFactory.createRoCreditControlRequest();
    assertTrue("Request Flag in Credit-Control-Request is not set.", ccr.getHeader().isRequest());
}
Also used : RoCreditControlRequest(net.java.slee.resource.diameter.ro.events.RoCreditControlRequest) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Aggregations

RoCreditControlRequest (net.java.slee.resource.diameter.ro.events.RoCreditControlRequest)18 Test (org.junit.Test)9 BaseFactoriesTest (org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)9 IOException (java.io.IOException)5 DiameterException (net.java.slee.resource.diameter.base.DiameterException)4 AvpNotAllowedException (net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException)4 RoCreditControlAnswer (net.java.slee.resource.diameter.ro.events.RoCreditControlAnswer)4 Request (org.jdiameter.api.Request)4 RoCreditControlRequestImpl (org.jdiameter.common.impl.app.ro.RoCreditControlRequestImpl)4 DiameterMessageImpl (org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl)4 ApplicationId (org.jdiameter.api.ApplicationId)3 RoMessageFactoryImpl (org.mobicents.slee.resource.diameter.ro.RoMessageFactoryImpl)3 RoServerSessionActivityImpl (org.mobicents.slee.resource.diameter.ro.RoServerSessionActivityImpl)3 ActivityContextInterface (javax.slee.ActivityContextInterface)2 CreateException (javax.slee.CreateException)2 ArrayList (java.util.ArrayList)1 SLEEException (javax.slee.SLEEException)1 DiameterAvp (net.java.slee.resource.diameter.base.events.avp.DiameterAvp)1 DiameterIdentity (net.java.slee.resource.diameter.base.events.avp.DiameterIdentity)1 MultipleServicesCreditControlAvp (net.java.slee.resource.diameter.cca.events.avp.MultipleServicesCreditControlAvp)1