return 0; case ACTION_STOP: stop(params); return 0; case ACTION_SAVEPOINT:
@Test(expected = CliArgsException.class) public void testUnrecognizedOption() throws Exception { // test unrecognized option String[] parameters = { "-v", "-l" }; Configuration configuration = getConfiguration(); CliFrontend testFrontend = new CliFrontend( configuration, Collections.singletonList(getCli(configuration))); testFrontend.stop(parameters); }
@Test(expected = CliArgsException.class) public void testMissingJobId() throws Exception { // test missing job id String[] parameters = {}; Configuration configuration = getConfiguration(); CliFrontend testFrontend = new CliFrontend( configuration, Collections.singletonList(getCli(configuration))); testFrontend.stop(parameters); }
return 0; case ACTION_STOP: stop(params); return 0; case ACTION_SAVEPOINT:
return 0; case ACTION_STOP: stop(params); return 0; case ACTION_SAVEPOINT: