return 0; case ACTION_INFO: info(params); return 0; case ACTION_CANCEL:
@Test public void testShowExecutionPlanWithParallelism() { replaceStdOut(); try { String[] parameters = {"-p", "17", CliFrontendTestUtils.getTestJarPath()}; Configuration configuration = getConfiguration(); CliFrontend testFrontend = new CliFrontend( configuration, Collections.singletonList(getCli(configuration))); testFrontend.info(parameters); assertTrue(buffer.toString().contains("\"parallelism\": \"17\"")); } catch (Exception e) { e.printStackTrace(); fail("Program caused an exception: " + e.getMessage()); } finally { restoreStdOut(); } }
@Test public void testShowExecutionPlan() throws Exception { replaceStdOut(); try { String[] parameters = new String[]{CliFrontendTestUtils.getTestJarPath(), "-f", "true"}; Configuration configuration = getConfiguration(); CliFrontend testFrontend = new CliFrontend( configuration, Collections.singletonList(getCli(configuration))); testFrontend.info(parameters); assertTrue(buffer.toString().contains("\"parallelism\": \"1\"")); } finally { restoreStdOut(); } }
return 0; case ACTION_INFO: info(params); return 0; case ACTION_CANCEL:
return 0; case ACTION_INFO: info(params); return 0; case ACTION_CANCEL: