Search in sources :

Example 1 with OpenHelper

use of org.greenrobot.greendao.daotest.DaoMaster.OpenHelper in project greenDAO by greenrobot.

the class EncryptedDatabaseOpenHelperTest method testEncryptedOpenHelper.

public void testEncryptedOpenHelper() {
    createApplication();
    Database db = new OpenHelper(getApplication(), null) {

        @Override
        public void onUpgrade(Database db, int oldVersion, int newVersion) {
        }
    }.getEncryptedReadableDb("password");
    assertDbEncryptedAndFunctional(db);
}
Also used : DevOpenHelper(org.greenrobot.greendao.daotest.DaoMaster.DevOpenHelper) OpenHelper(org.greenrobot.greendao.daotest.DaoMaster.OpenHelper) Database(org.greenrobot.greendao.database.Database)

Aggregations

DevOpenHelper (org.greenrobot.greendao.daotest.DaoMaster.DevOpenHelper)1 OpenHelper (org.greenrobot.greendao.daotest.DaoMaster.OpenHelper)1 Database (org.greenrobot.greendao.database.Database)1