YARN-9453. Clean up code long if-else chain in ApplicationCLI#run. Contributed by Wanqiang Ji.
This commit is contained in:
parent
29ff7fb140
commit
206e633946
File diff suppressed because it is too large
Load Diff
|
@ -2027,9 +2027,8 @@ public class TestYarnCLI {
|
||||||
@Test
|
@Test
|
||||||
public void testFailApplicationAttempt() throws Exception {
|
public void testFailApplicationAttempt() throws Exception {
|
||||||
ApplicationCLI cli = createAndGetAppCLI();
|
ApplicationCLI cli = createAndGetAppCLI();
|
||||||
int exitCode =
|
int exitCode = cli.run(new String[] {"applicationattempt", "-fail",
|
||||||
cli.run(new String[] { "applicationattempt", "-fail",
|
"appattempt_1444199730803_0003_000001"});
|
||||||
"appattempt_1444199730803_0003_000001" });
|
|
||||||
Assert.assertEquals(0, exitCode);
|
Assert.assertEquals(0, exitCode);
|
||||||
|
|
||||||
verify(client).failApplicationAttempt(any(ApplicationAttemptId.class));
|
verify(client).failApplicationAttempt(any(ApplicationAttemptId.class));
|
||||||
|
|
Loading…
Reference in New Issue