use of org.apache.kafka.common.config.provider.MockFileConfigProvider in project kafka by apache.
the class WorkerTest method expectFileConfigProvider.
private void expectFileConfigProvider() {
EasyMock.expect(plugins.newConfigProvider(EasyMock.anyObject(), EasyMock.eq("config.providers.file"), EasyMock.anyObject())).andAnswer(() -> {
MockFileConfigProvider mockFileConfigProvider = new MockFileConfigProvider();
mockFileConfigProvider.configure(Collections.singletonMap("testId", mockFileProviderTestId));
return mockFileConfigProvider;
});
}
Aggregations