Skip to content

Commit 90deada

Browse files
author
Chris Brody
authored
update documentation of creating a new test
- apply Java code highlighting - rename the sample test class - update spacing in the catch statement - update the last step
1 parent a0be359 commit 90deada

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,33 @@ More information can be found in [SQLCipher for Android](https://zetetic.net/sql
99
1. Open this repository within Android Studio
1010
2. Add a new class within `net.zetetic.tests` package that extends `SQLCipherTest`:
1111

12-
```
12+
```Java
1313
package net.zetetic.tests;
1414

1515
import net.sqlcipher.database.SQLiteDatabase;
1616

17-
public class DemoTest extends SQLCipherTest {
17+
public class AwesomeTest extends SQLCipherTest {
1818

1919
@Override
2020
public boolean execute(SQLiteDatabase database) {
2121
try {
2222
// Add your scenario here
2323
return true;
24-
}catch (Exception e){
24+
} catch (Exception e) {
2525
return false;
2626
}
2727
}
2828

2929
@Override
3030
public String getName() {
31-
return "Demo Test";
31+
return "Awesome Test";
3232
}
3333
}
3434
```
3535

36-
3. Add `DemoTest` to the [`TestSuiteRunner`](https://github.com/sqlcipher/sqlcipher-android-tests/blob/master/src/main/java/net/zetetic/tests/TestSuiteRunner.java):
36+
3. Add `AwesomeTest` to the [`TestSuiteRunner`](https://github.com/sqlcipher/sqlcipher-android-tests/blob/master/src/main/java/net/zetetic/tests/TestSuiteRunner.java):
3737

38+
```Java
39+
tests.add(new AwesomeTest());
3840
```
39-
tests.add(new DemoTest());
40-
```
41-
4. Build and run the application on an Android device/emulator
41+
4. Build and run the application on an Android device or emulator

0 commit comments

Comments
 (0)