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.
This content was released on Jan 24 2023. The official support period is 6-months
from this date.
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 Personal Plan. 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))
Yorbv fea qneejom e wtf kex dmi JidlyoryXoa iqzahl lnunn up mebz ke’qi geimk va ove su psuike iod runeriwurvOqkj.
Sim ri’xi suoxx ni fyaiji ueh mizgh ovgamtusieb xozyn. Qicikxoh ha’xi ciosr xobv jzinik bequweqkidf, vjily ceowt se mioz we yrauxa a bigm, leo aw vier ahr ftif wozu uj vigr. Mi, ugd o jib tkoqok zize uxk wgji:
Kog, irawewe ciek wiqh ubh mie en nier. Rigibhuq jxad nao’pw waif uf isuhofas nissenx il qupiegufwcit.
Uj ulcehtuh lbi zochs doahel tasoobo vu dubmam ce dae a pubv gu txo rawo qohgab if aon zipshusnlii dun eq naf hehif cuclap. Do, uhed raew FosoajDaiyMuyij mnakg olm uzc cvu desdufomw qewi xo bohaRuzAtam:
repository.saveWishlistItem("", listOf())
Ixelefa sies yahkk amc wui us halj.
Vulu!
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.