use of org.apache.flink.client.cli.CliFrontend in project flink by apache.
the class FlinkYarnSessionCliTest method validateExecutorCLIisPrioritised.
private void validateExecutorCLIisPrioritised(Configuration configuration, String[] argsUnderTest) throws IOException, CliArgsException {
final List<CustomCommandLine> customCommandLines = CliFrontend.loadCustomCommandLines(configuration, tmp.newFile().getAbsolutePath());
final CliFrontend cli = new CliFrontend(configuration, customCommandLines);
final CommandLine commandLine = cli.getCommandLine(CliFrontendParser.getRunCommandOptions(), argsUnderTest, true);
final CustomCommandLine customCommandLine = cli.validateAndGetActiveCommandLine(commandLine);
assertTrue(customCommandLine instanceof GenericCLI);
}
Aggregations