Package org.apache.flink.client

Examples of org.apache.flink.client.CliFrontend.list()


    try {
      // test unrecognized option
      {
        String[] parameters = {"-v", "-k"};
        CliFrontend testFrontend = new CliFrontend();
        int retCode = testFrontend.list(parameters);
        assertTrue(retCode == 2);
      }
     
      // test missing flags
      {
View Full Code Here


     
      // test missing flags
      {
        String[] parameters = {};
        CliFrontend testFrontend = new CliFrontend();
        int retCode = testFrontend.list(parameters);
        assertTrue(retCode != 0);
      }
     
      // test list properly
      {
View Full Code Here

     
      // test list properly
      {
        String[] parameters = {"-r", "-s"};
        InfoListTestCliFrontend testFrontend = new InfoListTestCliFrontend(new TestProtocol());
        int retCode = testFrontend.list(parameters);
        assertTrue(retCode == 0);
      }
    }
    catch (Exception e) {
      System.err.println(e.getMessage());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.