Search in sources :

Example 1 with PiTranslatable

use of org.onosproject.net.pi.service.PiTranslatable in project onos by opennetworkinglab.

the class DistributedPiTranslationStoreTest method setUp.

/**
 * Sets up the store and the storage service test harness.
 */
@Before
public void setUp() {
    store = new AbstractDistributedPiTranslationStore<PiTranslatable, PiEntity>() {

        @Override
        protected String mapSimpleName() {
            return "test";
        }
    };
    store.storageService = new TestStorageService();
    store.setDelegate(event -> {
    });
    store.activate();
}
Also used : PiTranslatable(org.onosproject.net.pi.service.PiTranslatable) PiEntity(org.onosproject.net.pi.runtime.PiEntity) TestStorageService(org.onosproject.store.service.TestStorageService) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 PiEntity (org.onosproject.net.pi.runtime.PiEntity)1 PiTranslatable (org.onosproject.net.pi.service.PiTranslatable)1 TestStorageService (org.onosproject.store.service.TestStorageService)1