/** * Executes batch with simulation mode. * * @throws Exception if failed */ @Test public void executeBatch_sim() throws Exception { ProfileBuilder prf = new ProfileBuilder(folder.getRoot()); prf.setInvalid(); ExecutionTask task = prf.task(); task.setRuntimeContext(RuntimeContext.DEFAULT.mode(ExecutionMode.SIMULATION)); task.executeBatch("batch"); }
/** * Execute phase as simulation mode. * * @throws Exception if failed */ @Test public void phase_sim() throws Exception { ProfileBuilder prf = new ProfileBuilder(folder.getRoot()); prf.setInvalid(); ExecutionTask task = prf.task(); task.setRuntimeContext(RuntimeContext.DEFAULT.mode(ExecutionMode.SIMULATION)); task.executePhase("batch", "testing", "f1", ExecutionPhase.MAIN); }