Replace JUnit asserts with AssertJ in HistoryRecordManagerTest (#7654)
* Replace JUnit asserts with AssertJ in HistoryRecordManagerTest They provide a wider range of assertions, which allow for more detailed error messages. Also convert SearchHistoryEntry to kotlin data class for better error messages, since toString() is implemented. Co-authored-by: Mohammed Anas <triallax@tutanota.com>
This commit is contained in:
parent
72cee85581
commit
7cfbd55c3a
4 changed files with 69 additions and 104 deletions
|
|
@ -112,6 +112,7 @@ ext {
|
|||
leakCanaryVersion = '2.5'
|
||||
stethoVersion = '1.6.0'
|
||||
mockitoVersion = '4.0.0'
|
||||
assertJVersion = '3.22.0'
|
||||
}
|
||||
|
||||
configurations {
|
||||
|
|
@ -290,6 +291,7 @@ dependencies {
|
|||
androidTestImplementation "androidx.test.ext:junit:1.1.3"
|
||||
androidTestImplementation "androidx.test:runner:1.4.0"
|
||||
androidTestImplementation "androidx.room:room-testing:${androidxRoomVersion}"
|
||||
androidTestImplementation "org.assertj:assertj-core:${assertJVersion}"
|
||||
}
|
||||
|
||||
static String getGitWorkingBranch() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue