Search in sources :

Example 1 with MockFileConfigProvider

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;
    });
}
Also used : MockFileConfigProvider(org.apache.kafka.common.config.provider.MockFileConfigProvider)

Aggregations

MockFileConfigProvider (org.apache.kafka.common.config.provider.MockFileConfigProvider)1