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);
}
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);
}
Aggregations