/** * Test test verifies that the execution environment can be used to execute multiple * bounded streaming jobs after one another. */ @Test public void testMultipleJobsAfterAnother() throws Exception { LocalStreamEnvironment env = new LocalStreamEnvironment(); addSmallBoundedJob(env, 3); env.execute(); addSmallBoundedJob(env, 5); env.execute(); }
/** * Test test verifies that the execution environment can be used to execute a * single job with multiple slots. */ @Test public void testRunIsolatedJob() throws Exception { LocalStreamEnvironment env = new LocalStreamEnvironment(); assertEquals(1, env.getParallelism()); addSmallBoundedJob(env, 3); env.execute(); }