[Android] Refactor tests
Habib Kazemi
git at videolan.org
Thu Aug 9 08:50:21 CEST 2018
vlc-android | branch: master | Habib Kazemi <kazemihabib1996 at gmail.com> | Mon Aug 6 15:52:11 2018 +0430| [7a12fc43f39a909673794ce55247f6bbae3d8aa0] | committer: Geoffrey Métais
Refactor tests
android.arch.core:core-testing dependency added so we have tools to test
arch components.
Utils that common between test and AndroidTest moved to
test-common.
Dao tests all extend DbTest so initDb and closeDb handled there.
Dao tests have new naming convention.
Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>
> https://code.videolan.org/videolan/vlc-android/commit/7a12fc43f39a909673794ce55247f6bbae3d8aa0
---
.../org/videolan/vlc/database/BrowserFavDaoTest.kt | 135 ++++++++++++---------
.../org/videolan/vlc/database/DbTest.kt | 54 +++++++++
.../videolan/vlc/database/ExternalSubDaoTest.kt | 114 ++++++++---------
.../org/videolan/vlc/database/SlaveDaoTest.kt | 52 ++------
vlc-android/build.gradle | 7 +-
.../org/videolan/vlc/util/LiveDataTestUtil.kt | 0
.../java/org/videolan/vlc/util/TestUtil.kt | 80 ++++++++++++
7 files changed, 289 insertions(+), 153 deletions(-)
Diff: https://code.videolan.org/videolan/vlc-android/commit/7a12fc43f39a909673794ce55247f6bbae3d8aa0
More information about the Android
mailing list