Ejemplo n.º 1
0
 /**
  * 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");
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }