Java 类org.robolectric.shadows.ShadowSQLiteConnection 实例源码

项目:q-mail    文件:MigrationTest.java   
@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());
}
项目:K9-MailClient    文件:MigrationTest.java   
@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());
}