Skip to content

Android JUnit Test using SQLCipher #133

Closed
@xxtesaxx

Description

@xxtesaxx

Hello everyone,
i hope you can help me to get this working. I want to write JUnit tests for my App and heres the problem:
I added the icudt46l.zip to the assets directory of my test project. Then i wrote a simple ActivityUnitTestCase. In the setUp() method, i call SQLiteDatabase.loadLibs(getInstrumentation().getTargetContext());
but unfortunately i always the the "net.sqlcipher.database.SQLiteException: not an error" error.

Is it possible to have JUnit tests with SQLCipher for Android? How should i load the libs in a test project? I saw that there is a "test suite" but this is just a regular Android App doing some stuff. I need real unit tests for my company and i wonder how this could be done. If anybody has an idea, i would love to hear about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions