To run, clone this repo and make sure you have the Android Studio installed:
- SQLCipher for Android defines compatibility support, simply run on either an emulator or device.
- More information can be found at SQLCipher for Android.
Creating A New Test
- Open this repository within Android Studio
- Add a new class within
net.zetetic.tests
package that extendsSQLCipherTest
:
package net.zetetic.tests;
import net.sqlcipher.database.SQLiteDatabase;
public class DemoTest extends SQLCipherTest {
@Override
public boolean execute(SQLiteDatabase database) {
try {
// Add your scenario here
return true;
}catch (Exception e){
return false;
}
}
@Override
public String getName() {
return "Demo Test";
}
}
- Add
DemoTest
to theTestSuiteRunner
:
tests.add(new DemoTest());
- Build and run the application on an Android device/emulator