@Test public void automaticallyCloseCreatedFileSystemOnShutdown() throws Exception { verifyInserterFileSystemClose( inserter( getStoreDir() ) ); verifyInserterFileSystemClose( inserter( getStoreDir(), getConfig() ) ); verifyInserterFileSystemClose( inserter( getStoreDir(), getConfig(), getKernelExtensions() ) ); }
@Test public void providedFileSystemNotClosedAfterShutdown() throws IOException { EphemeralFileSystemAbstraction fs = fileSystemRule.get(); verifyProvidedFileSystemOpenAfterShutdown( inserter( getStoreDir(), fs ), fs ); verifyProvidedFileSystemOpenAfterShutdown( inserter( getStoreDir(), fs, getConfig() ), fs ); verifyProvidedFileSystemOpenAfterShutdown( inserter( getStoreDir(), fs, getConfig(), getKernelExtensions() ), fs ); }