Search in sources :

Example 6 with PersistenceRAInterfaceProxy

use of org.mobicents.smsc.slee.resources.persistence.PersistenceRAInterfaceProxy in project smscgateway by RestComm.

the class DeliveryCommonSbbTest method setUpClass.

@BeforeMethod
public void setUpClass() throws Exception {
    System.out.println("setUpClass");
    this.pers = new PersistenceRAInterfaceProxy();
    this.cassandraDbInited = this.pers.testCassandraAccess();
    if (!this.cassandraDbInited)
        return;
    this.pers.start();
    MProcManagement.getInstance("TestDeliveryCommonSbb");
    SmscPropertiesManagement.getInstance("TestDeliveryCommonSbb");
    SmscPropertiesManagement smscPropertiesManagement = SmscPropertiesManagement.getInstance();
    smscPropertiesManagement.setGenerateArchiveTable(new GenerateType(0));
    smscPropertiesManagement.setGenerateCdr(new GenerateType(0));
    // 15 min
    smscPropertiesManagement.setVpProlong(15 * 60);
}
Also used : GenerateType(org.restcomm.smpp.GenerateType) SmscPropertiesManagement(org.mobicents.smsc.domain.SmscPropertiesManagement) PersistenceRAInterfaceProxy(org.mobicents.smsc.slee.resources.persistence.PersistenceRAInterfaceProxy) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 7 with PersistenceRAInterfaceProxy

use of org.mobicents.smsc.slee.resources.persistence.PersistenceRAInterfaceProxy in project smscgateway by RestComm.

the class MtDatabaseCassandraTest method setUpClass.

// private byte[] msg = { 11, 12, 13, 14, 15, 15 };
// private byte[] msg_ref_num = { 0, 10 };
@BeforeMethod
public void setUpClass() throws Exception {
    System.out.println("setUpClass");
    this.pers = new PersistenceRAInterfaceProxy();
    this.cassandraDbInited = this.pers.testCassandraAccess();
    if (!this.cassandraDbInited)
        return;
    this.pers.start();
    SmscPropertiesManagement.getInstance("Test");
    SmsSetCache.getInstance().clearProcessingSmsSet();
    this.sbb = new MtSbbProxy(this.pers);
}
Also used : PersistenceRAInterfaceProxy(org.mobicents.smsc.slee.resources.persistence.PersistenceRAInterfaceProxy) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 8 with PersistenceRAInterfaceProxy

use of org.mobicents.smsc.slee.resources.persistence.PersistenceRAInterfaceProxy in project smscgateway by RestComm.

the class AlertTest method setUpClass.

@BeforeMethod
public void setUpClass() throws Exception {
    System.out.println("setUpClass");
    this.pers = new PersistenceRAInterfaceProxy();
    this.cassandraDbInited = this.pers.testCassandraAccess();
    if (!this.cassandraDbInited)
        return;
    this.pers.start();
    this.sbb = new AlertSbbProxy(this.pers);
    SmscPropertiesManagement.getInstance("Test");
}
Also used : PersistenceRAInterfaceProxy(org.mobicents.smsc.slee.resources.persistence.PersistenceRAInterfaceProxy) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

PersistenceRAInterfaceProxy (org.mobicents.smsc.slee.resources.persistence.PersistenceRAInterfaceProxy)8 BeforeMethod (org.testng.annotations.BeforeMethod)8 SmscPropertiesManagement (org.mobicents.smsc.domain.SmscPropertiesManagement)2 HttpUsersManagement (org.mobicents.smsc.domain.HttpUsersManagement)1 MapVersionCache (org.mobicents.smsc.domain.MapVersionCache)1 Esme (org.restcomm.smpp.Esme)1 GenerateType (org.restcomm.smpp.GenerateType)1