Search in sources :

Example 1 with MapVersionCache

use of org.mobicents.smsc.domain.MapVersionCache in project smscgateway by RestComm.

the class MtTest method setUpMethod.

@BeforeMethod
public void setUpMethod() throws Exception {
    System.out.println("setUpMethod");
    SmscPropertiesManagement smscPropertiesManagement = SmscPropertiesManagement.getInstance("Test");
    smscPropertiesManagement.setServiceCenterGt("1111");
    smscPropertiesManagement.setServiceCenterSsn(8);
    smscPropertiesManagement.setHlrSsn(6);
    smscPropertiesManagement.setMscSsn(8);
    MapVersionCache mvc = MapVersionCache.getInstance("test");
    mvc.forceClear();
    this.pers = new PersistenceRAInterfaceProxy();
    this.cassandraDbInited = this.pers.testCassandraAccess();
    if (!this.cassandraDbInited)
        return;
    this.pers.start();
    this.mtSbb = new MtSbbProxy(this.pers);
    this.rsdsSbb = new RsdsSbbProxy(this.pers);
    this.sriSbb = new SriSbbProxy(this.pers, this.mtSbb, this.rsdsSbb);
    this.mtSbb.setSriSbbProxy(this.sriSbb);
    this.mtSbb.setRsdsSbbProxy(rsdsSbb);
    SmsSetCache.getInstance().clearProcessingSmsSet();
    SmscPropertiesManagement.getInstance().setSmscStopped(false);
    SmscPropertiesManagement.getInstance().setStoreAndForwordMode(StoreAndForwordMode.normal);
}
Also used : MapVersionCache(org.mobicents.smsc.domain.MapVersionCache) SmscPropertiesManagement(org.mobicents.smsc.domain.SmscPropertiesManagement) PersistenceRAInterfaceProxy(org.mobicents.smsc.slee.resources.persistence.PersistenceRAInterfaceProxy) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

MapVersionCache (org.mobicents.smsc.domain.MapVersionCache)1 SmscPropertiesManagement (org.mobicents.smsc.domain.SmscPropertiesManagement)1 PersistenceRAInterfaceProxy (org.mobicents.smsc.slee.resources.persistence.PersistenceRAInterfaceProxy)1 BeforeMethod (org.testng.annotations.BeforeMethod)1