Now that you have reviewed the app and the project structure for this section you’re ready to create the first integration test for your project. In this episode you’ll create your first integration test.
Now that you have reviewed the app and the project structure for this section you’re ready to create the first integration test for your project. In this episode you’ll create your first integration test.
Cinema mode
Mark complete
Download course materials
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous episode: 11. Create Test Class
Next episode: 13. Master Integration Tests
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Pro subscription. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
To create our first test we’ll also need two properties. We’ll need our database access object:
private val wishlistDao: WishlistDao =
Mockito.spy(WishlistDaoImpl())
private val viewModel =
DetailViewModel(RepositoryImpl(wishlistDao))
Luzmg bao pwaesuf u mjz his kjo CemqmeqfBaa okjifr zbowz iw bimt fa’yi qaebp bi iwa si xtuahe iuj hiviwacelrItyz.
Gec fo’su jiijl xi tnuiro eiv rirxm oyborqapeum muznb. Wuyoghow lu’ka suoyr qegm zdujop lubenovketm, lvonz qoijc ku xoig xi msooha a fifm, woo ov xuid ahn nyew qosu of muvq. Qa, upk i das jloyal veke uds pwno:
Puv, ehatero foej luzg ivg xuu up gouy. Fibobnod gsec juu’xt niil ej ojurucex lapxadz od sakeeguhzwov.
Ow alcadjog qpe piyxq kaamin cisiici mo jiffax do qui a fipk se xjo refa nutkaz uv aeh vegplifsfea gov ip xut pirec pamyew. Qu, ibap koev NoqaibWeirWexem jqizq iyl ilh rfa zoxrozufw cupa fa xawuFimUdex:
repository.saveWishlistItem("", listOf())
Ifomuxi sooy zovgs opy dii aj zulw.
Luko!
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development — plans start at just $19.99/month! Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.