Search in sources :

Example 1 with IntentServiceAdapter

use of org.onosproject.net.intent.IntentServiceAdapter in project onos by opennetworkinglab.

the class IntentCodecTest method setUpIntentService.

@Before
public void setUpIntentService() {
    final IntentService mockIntentService = new IntentServiceAdapter();
    context.registerService(IntentService.class, mockIntentService);
    context.registerService(CoreService.class, mockCoreService);
    expect(mockCoreService.getAppId(appId.name())).andReturn(appId);
    replay(mockCoreService);
}
Also used : IntentServiceAdapter(org.onosproject.net.intent.IntentServiceAdapter) IntentService(org.onosproject.net.intent.IntentService) Before(org.junit.Before)

Example 2 with IntentServiceAdapter

use of org.onosproject.net.intent.IntentServiceAdapter in project onos by opennetworkinglab.

the class MultiPointToSinglePointIntentCodecTest method setUpIntentService.

@Before
public void setUpIntentService() {
    final IntentService mockIntentService = new IntentServiceAdapter();
    context.registerService(IntentService.class, mockIntentService);
    context.registerService(CoreService.class, mockCoreService);
    expect(mockCoreService.getAppId(APPID.name())).andReturn(APPID);
    replay(mockCoreService);
}
Also used : IntentServiceAdapter(org.onosproject.net.intent.IntentServiceAdapter) IntentService(org.onosproject.net.intent.IntentService) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)2 IntentService (org.onosproject.net.intent.IntentService)2 IntentServiceAdapter (org.onosproject.net.intent.IntentServiceAdapter)2