Search in sources :

Example 1 with ServiceConfigBase

use of org.apache.dubbo.config.ServiceConfigBase in project dubbo by alibaba.

the class ListTelnetHandlerTest method registerProvider.

private void registerProvider(String key, Object impl, Class<?> interfaceClass) {
    ServiceConfigBase sc = mock(ServiceConfigBase.class);
    given(sc.getRegistries()).willReturn(new ArrayList<>());
    ServiceDescriptor serviceDescriptor = repository.registerService(interfaceClass);
    repository.registerProvider(key, impl, serviceDescriptor, sc, null);
}
Also used : ServiceDescriptor(org.apache.dubbo.rpc.model.ServiceDescriptor) ServiceConfigBase(org.apache.dubbo.config.ServiceConfigBase)

Aggregations

ServiceConfigBase (org.apache.dubbo.config.ServiceConfigBase)1 ServiceDescriptor (org.apache.dubbo.rpc.model.ServiceDescriptor)1