Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.14 KB

File metadata and controls

39 lines (30 loc) · 1.14 KB

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