Package org.apache.flink.client

Examples of org.apache.flink.client.CliFrontend


  public void testNonExistingFileWithArguments() {
    try {
      String[] parameters = {"/some/none/existing/path", "some", "program", "arguments"};
      CommandLine line = new PosixParser().parse(CliFrontend.getProgramSpecificOptions(new Options()), parameters, false);
       
      CliFrontend frontend = new CliFrontend();
      Object result = frontend.buildProgram(line);
      assertTrue(result == null);
    }
    catch (Exception e) {
      System.err.println(e.getMessage());
      e.printStackTrace();
View Full Code Here


  public void testNonExistingFileWithoutArguments() {
    try {
      String[] parameters = {"/some/none/existing/path"};
      CommandLine line = new PosixParser().parse(CliFrontend.getProgramSpecificOptions(new Options()), parameters, false);
       
      CliFrontend frontend = new CliFrontend();
      Object result = frontend.buildProgram(line);
      assertTrue(result == null);
    }
    catch (Exception e) {
      System.err.println(e.getMessage());
      e.printStackTrace();
View Full Code Here

    final boolean[] callme = { false }; // create a final object reference, to be able to change its val later
    try {
      String[] parameters = {getTestJarPath(), "-c", TEST_JAR_CLASSLOADERTEST_CLASS , "some", "program"};
      CommandLine line = new PosixParser().parse(CliFrontend.getProgramSpecificOptions(new Options()), parameters, false);
     
      CliFrontend frontend = new CliFrontend();
      Object result = frontend.buildProgram(line);
      assertTrue(result instanceof PackagedProgram);
     
      PackagedProgram prog = spy((PackagedProgram) result);

      ClassLoader testClassLoader = new ClassLoader(prog.getUserCodeClassLoader()) {
View Full Code Here

TOP

Related Classes of org.apache.flink.client.CliFrontend

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.