use of org.apache.flink.table.delegation.ExecutorFactory in project flink by apache.
the class LoaderITCase method testExecutorFactory.
@Test
public void testExecutorFactory() {
assertThat(DelegateExecutorFactory.class.getClassLoader().getResourceAsStream(FLINK_TABLE_PLANNER_FAT_JAR)).isNotNull();
ExecutorFactory executorFactory = FactoryUtil.discoverFactory(LoaderITCase.class.getClassLoader(), ExecutorFactory.class, ExecutorFactory.DEFAULT_IDENTIFIER);
assertThat(executorFactory).isNotNull().isInstanceOf(DelegateExecutorFactory.class);
assertThat(executorFactory.factoryIdentifier()).isEqualTo(ExecutorFactory.DEFAULT_IDENTIFIER);
}
Aggregations