[Android] Use unit-test for repositories instead of instrumentTest

Habib Kazemi git at videolan.org
Thu Aug 9 08:50:23 CEST 2018


vlc-android | branch: master | Habib Kazemi <kazemihabib1996 at gmail.com> | Wed Aug  8 21:11:22 2018 +0430| [cdb1da17a0085ad16319cbed0e9dd6226a4ac1cc] | committer: Geoffrey Métais

Use unit-test for repositories instead of instrumentTest

Some modifications in packages also done

Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>

> https://code.videolan.org/videolan/vlc-android/commit/cdb1da17a0085ad16319cbed0e9dd6226a4ac1cc
---

 build.gradle                                       |   2 +
 .../org/videolan/vlc/database/BrowserFavDaoTest.kt |  14 +-
 .../videolan/vlc/database/ExternalSubDaoTest.kt    |   2 +-
 .../org/videolan/vlc/database/SlaveDaoTest.kt      |   2 +-
 .../vlc/repository/BrowserFavRepositoryTest.kt     |  73 ------
 .../vlc/repository/ExternalSubRepositoryTest.kt    |  93 -------
 .../videolan/vlc/repository/SlaveRepositoryTest.kt |  77 ------
 vlc-android/build.gradle                           |   6 +
 .../src/org/videolan/vlc/database/Migrations.kt    |   2 +-
 .../vlc/gui/browser/BaseBrowserFragment.kt         |   3 +-
 .../vlc/gui/dialogs/NetworkServerDialog.java       |   3 +-
 .../src/org/videolan/vlc/gui/tv/MainTvFragment.kt  |   3 +-
 .../vlc/gui/tv/MediaItemDetailsFragment.java       |   3 +-
 .../vlc/gui/video/VideoPlayerActivity.java         |   5 +-
 .../src/org/videolan/vlc/media/PlayerController.kt |   3 +-
 .../videolan/vlc/providers/FileBrowserProvider.kt  |   3 +-
 .../org/videolan/vlc/providers/NetworkProvider.kt  |   3 +-
 .../vlc/repository/BrowserFavRepository.kt         |   8 +-
 .../vlc/repository/ExternalSubRepository.kt        |  11 +-
 .../org/videolan/vlc/repository/SlaveRepository.kt |   6 +-
 .../org/videolan/vlc/util/SubtitlesDownloader.java |   3 +-
 .../org/videolan/vlc/util/LiveDataTestUtil.kt      |   0
 .../org/videolan/vlc/util/MockitoExt.kt            |  33 +++
 .../{java => }/org/videolan/vlc/util/TestUtil.kt   |  20 +-
 .../vlc/repository/BrowserFavRepositoryTest.kt     | 268 +++++++++++++++++++++
 .../vlc/repository/ExternalSubRepositoryTest.kt    | 147 +++++++++++
 .../videolan/vlc/repository/SlaveRepositoryTest.kt |  80 ++++++
 .../test/org/videolan/vlc/util/StringsTest.java    |  41 ----
 .../test/org/videolan/vlc/util/UtilTest.java       |  29 ---
 29 files changed, 585 insertions(+), 358 deletions(-)

Diff:   https://code.videolan.org/videolan/vlc-android/commit/cdb1da17a0085ad16319cbed0e9dd6226a4ac1cc


More information about the Android mailing list