Source:
<code>public void ignoreTestHadoopExecution() throws Exception { final File targetDir = new File("target/example_hadoop_repo"); FileUtils.deleteDirectory(targetDir); FileUtils.copyDirectory(new File("src/test/resources/example_hadoop_repo"), targetDir); final Repository repository = new FileRepository(targetDir); final ApplicationContext applicationContext = new ClassPathXmlApplicationContext( "context/application-context.xml"); final TenantContextFactory tenantContextFactory = new TenantContextFactoryImpl(repository, new DataCleanerEnvironmentImpl(), new DefaultJobEngineManager(applicationContext)); final TenantIdentifier tenantIdentifier = new TenantIdentifier("tenant"); final TenantContext tenantContext = tenantContextFactory.getContext(tenantIdentifier); final JobIdentifier jobIdentifier = new JobIdentifier("hadoop_job"); <START> ScheduleDefinition schedule = new ScheduleDefinition(tenantIdentifier, jobIdentifier, "Hadoop"); <END> schedule.setRunOnHadoop(true); assertTrue(schedule.isRunOnHadoop()); ExecutionLog execution = new ExecutionLog(schedule, TriggerType.MANUAL); JobEngineManager manager = applicationContext.getBean(JobEngineManager.class); assertTrue(manager instanceof DefaultJobEngineManager); JobEngine<?> engine; engine = manager.getJobEngine(DataCleanerJobContext.class); assertEquals(DataCleanerJobEngine.class, engine.getClass()); String executionId = new ExecuteJob().executeJob(tenantContext, execution, null, manager); assertNotNull(executionId); try { SchedulingService schedulingService = new SchedulingServiceImpl(repository, tenantContextFactory); ExecutionLog log = schedulingService.getExecution(tenantIdentifier, execution); assertEquals("SUCCESS", log.getExecutionStatus().toString()); } finally { RepositoryNode logNode = repository.getRepositoryNode("/tenant/results/" + executionId + ".analysis.execution.log.xml"); assertNotNull(logNode); logNode.delete(); } }</code><technical_language>a finals missing rest of this file</technical_language>

Target:
public void ignoreTestHadoopExecution() throws Exception { final File targetDir = new File("target/example_hadoop_repo"); FileUtils.deleteDirectory(targetDir); FileUtils.copyDirectory(new File("src/test/resources/example_hadoop_repo"), targetDir); final Repository repository = new FileRepository(targetDir); final ApplicationContext applicationContext = new ClassPathXmlApplicationContext( "context/application-context.xml"); final TenantContextFactory tenantContextFactory = new TenantContextFactoryImpl(repository, new DataCleanerEnvironmentImpl(), new DefaultJobEngineManager(applicationContext)); final TenantIdentifier tenantIdentifier = new TenantIdentifier("tenant"); final TenantContext tenantContext = tenantContextFactory.getContext(tenantIdentifier); final JobIdentifier jobIdentifier = new JobIdentifier("hadoop_job"); final ScheduleDefinition schedule = new ScheduleDefinition(tenantIdentifier, jobIdentifier, "Hadoop"); schedule.setRunOnHadoop(true); assertTrue(schedule.isRunOnHadoop()); final ExecutionLog execution = new ExecutionLog(schedule, TriggerType.MANUAL); final JobEngineManager manager = applicationContext.getBean(JobEngineManager.class); assertTrue(manager instanceof DefaultJobEngineManager); final JobEngine<?> engine; engine = manager.getJobEngine(DataCleanerJobContext.class); assertEquals(DataCleanerJobEngine.class, engine.getClass()); final String executionId = new ExecuteJob().executeJob(tenantContext, execution, null, manager); assertNotNull(executionId); try { final SchedulingService schedulingService = new SchedulingServiceImpl(repository, tenantContextFactory); final ExecutionLog log = schedulingService.getExecution(tenantIdentifier, execution); assertEquals("SUCCESS", log.getExecutionStatus().toString()); } finally { final RepositoryNode logNode = repository.getRepositoryNode("/tenant/results/" + executionId + ".analysis.execution.log.xml"); assertNotNull(logNode); logNode.delete(); } }