Visitar URL original
GitHub - sqlcipher/sqlcipher-android-tests at support · GitHub
Skip to content

About

A collection of tests that can be run on an emulator or device to verify SQLCipher for Android.

Resources

Stars

92 stars

Watchers

13 watching

Forks

 
 

Repository files navigation

To run, clone this repo and make sure you have the Android Studio installed:

Creating A New Test

  1. Open this repository within Android Studio
  2. Add a new class within net.zetetic.tests package that extends SQLCipherTest:
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";
  }
}
  1. Add DemoTest to the TestSuiteRunner:
tests.add(new DemoTest());
  1. Build and run the application on an Android device/emulator

About

A collection of tests that can be run on an emulator or device to verify SQLCipher for Android.

Resources

Stars

92 stars

Watchers

13 watching

Forks

Releases

Packages

Contributors

Languages