@Before public void setUp() throws Exception { QMail.setDebug(true); ShadowLog.stream = System.out; ShadowSQLiteConnection.reset(); account = getNewAccount(); StorageManager storageManager = StorageManager.getInstance(RuntimeEnvironment.application); databaseFile = storageManager.getDatabase(account.getUuid(), account.getLocalStorageProviderId()); Assert.assertTrue(databaseFile.getParentFile().isDirectory() || databaseFile.getParentFile().mkdir()); attachmentDir = StorageManager.getInstance(RuntimeEnvironment.application).getAttachmentDirectory( account.getUuid(), account.getLocalStorageProviderId()); Assert.assertTrue(attachmentDir.isDirectory() || attachmentDir.mkdir()); }
@Before public void setUp() throws Exception { K9.DEBUG = true; ShadowLog.stream = System.out; ShadowSQLiteConnection.reset(); account = getNewAccount(); StorageManager storageManager = StorageManager.getInstance(RuntimeEnvironment.application); databaseFile = storageManager.getDatabase(account.getUuid(), account.getLocalStorageProviderId()); Assert.assertTrue(databaseFile.getParentFile().isDirectory() || databaseFile.getParentFile().mkdir()); attachmentDir = StorageManager.getInstance(RuntimeEnvironment.application).getAttachmentDirectory( account.getUuid(), account.getLocalStorageProviderId()); Assert.assertTrue(attachmentDir.isDirectory() || attachmentDir.mkdir()); }