@Test public void createTransactionContext() throws IOException { ContentFileTransactionContext context = contentFileTransactionContextFactory.createTransactionContext(); assertNotNull(context); assertEquals(new File(contentDirectoryPath), context.getContentDirectory()); assertTrue(context.getDeletedTmpDirectory().exists()); FileUtils.deleteDirectory(context.getDeletedTmpDirectory()); }
public ContentFileTransactionContext createTransactionContext() { File tmpDirectory = Files.createTempDir(); ContentFileTransactionContext transactionContext = new ContentFileTransactionContext(new File(contentDirectoryPath), tmpDirectory); return transactionContext; }
ContentFileTransactionContextFactory { public ContentFileTransactionContext createTransactionContext() { File tmpDirectory = Files.createTempDir(); ContentFileTransactionContext transactionContext = new ContentFileTransactionContext(new File(contentDirectoryPath), tmpDirectory); return transactionContext; } }
ContentFileTransactionContextFactory { public ContentFileTransactionContext createTransactionContext() { File tmpDirectory = Files.createTempDir(); ContentFileTransactionContext transactionContext = new ContentFileTransactionContext(new File(contentDirectoryPath), tmpDirectory); return transactionContext; }  }
ContentFileTransactionContextFactory { public ContentFileTransactionContext createTransactionContext() { File tmpDirectory = Files.createTempDir(); ContentFileTransactionContext transactionContext = new ContentFileTransactionContext(new File(contentDirectoryPath), tmpDirectory); return transactionContext; }  ContentFileTransactionContext createTransactionContext(); @Value("${judgments.content.dir}") void setContentDirectoryPath(String contentDirectoryPath); }
ContentFileTransactionContextFactory { public ContentFileTransactionContext createTransactionContext() { File tmpDirectory = Files.createTempDir(); ContentFileTransactionContext transactionContext = new ContentFileTransactionContext(new File(contentDirectoryPath), tmpDirectory); return transactionContext; }  ContentFileTransactionContext createTransactionContext(); @Value("${judgments.content.dir}") void setContentDirectoryPath(String contentDirectoryPath);  }