Skip to content

Commit 62d1344

Browse files
committed
update invalid key tests to expect SQLiteException instead of SQLiteDatabaseCorruptException
1 parent 8e1cf3a commit 62d1344

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlcipher/src/androidTest/java/net/zetetic/database/sqlcipher_cts/SQLCipherDatabaseTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void testCreateDatabaseConnectionWithStringByteArray() {
7171
}
7272
}
7373

74-
@Test(expected = SQLiteDatabaseCorruptException.class)
74+
@Test(expected = SQLiteException.class)
7575
public void testOpenDatabaseConnectionWithInvalidStringPassword() {
7676
try {
7777
int a = 0, b = 0;
@@ -86,7 +86,7 @@ public void testOpenDatabaseConnectionWithInvalidStringPassword() {
8686
}
8787
}
8888

89-
@Test(expected = SQLiteDatabaseCorruptException.class)
89+
@Test(expected = SQLiteException.class)
9090
public void testOpenDatabaseConnectionWithInvalidByteArrayPassword() {
9191
try {
9292
int a = 0, b = 0;

0 commit comments

Comments
 (0)