use of org.apache.flink.runtime.state.changelog.StateChangelogStorageFactory in project flink by apache.
the class StateChangelogStorageLoaderTest method testLoadPluginImplementation.
@Test
@SuppressWarnings("rawtypes")
public void testLoadPluginImplementation() throws IOException {
StateChangelogStorageFactory factory = new TestStateChangelogStorageFactory();
PluginManager pluginManager = getPluginManager(singletonList(factory).iterator());
StateChangelogStorageLoader.initialize(pluginManager);
StateChangelogStorage loaded = StateChangelogStorageLoader.load(new Configuration(), createUnregisteredTaskManagerJobMetricGroup());
assertTrue(loaded instanceof TestStateChangelogStorage);
}
Aggregations