@Before public void setUp() throws Exception { MockDriver.registerInstance(); Job job = new Job(null, new JobMeta()); entry = new JobEntryEvalTableContent(); job.getJobMeta().addJobEntry(new JobEntryCopy(entry)); entry.setParentJob(job); job.setStopped(false); DatabaseMeta dbMeta = new DatabaseMeta(); dbMeta.setDatabaseType("mock-db"); entry.setDatabase(dbMeta); }
@Before public void setUp() throws Exception { job = new Job(null, new JobMeta()); entry = new JobEntryFilesExist(); job.getJobMeta().addJobEntry(new JobEntryCopy(entry)); entry.setParentJob(job); job.setStopped(false); File f = File.createTempFile("existingFile", "ext"); f.deleteOnExit(); existingFile1 = f.getPath(); f = File.createTempFile("existingFile", "ext"); f.deleteOnExit(); existingFile2 = f.getPath(); }