Github user gaborgsomogyi commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21450#discussion_r195016584
  
    --- Diff: 
launcher/src/test/java/org/apache/spark/launcher/SparkSubmitCommandBuilderSuite.java
 ---
    @@ -190,6 +197,36 @@ public void testSparkRShell() throws Exception {
           env.get("SPARKR_SUBMIT_ARGS"));
       }
     
    +  @Test(expected = IllegalArgumentException.class)
    +  public void testExamplesRunnerNoArg() throws Exception {
    +    List<String> sparkSubmitArgs = 
Arrays.asList(SparkSubmitCommandBuilder.RUN_EXAMPLE);
    +    Map<String, String> env = new HashMap<>();
    +    buildCommand(sparkSubmitArgs, env);
    +  }
    +
    +  @Test
    +  public void testExamplesRunnerNoMainClass() throws Exception {
    +    testCLIOpts(SparkSubmitCommandBuilder.RUN_EXAMPLE, parser.HELP, null);
    +    testCLIOpts(SparkSubmitCommandBuilder.RUN_EXAMPLE, parser.USAGE_ERROR, 
null);
    +    testCLIOpts(SparkSubmitCommandBuilder.RUN_EXAMPLE, parser.VERSION, 
null);
    +  }
    +
    +  @Rule
    +  public ExpectedException testExamplesRunnerWithMasterNoMainClassEx = 
ExpectedException.none();
    +
    +  @Test
    +  public void testExamplesRunnerWithMasterNoMainClass() throws Exception {
    +    
testExamplesRunnerWithMasterNoMainClassEx.expect(IllegalArgumentException.class);
    --- End diff --
    
    Renamed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to