Saving Data on Android


Robolectric  to  see how to unit test the  model



Download 19,28 Mb.
Pdf ko'rish
bet70/292
Sana24.01.2022
Hajmi19,28 Mb.
#407089
1   ...   66   67   68   69   70   71   72   73   ...   292
Bog'liq
Bailey J., Dominguez A., Djermanovic D. - Saving Data on Android (1st Edition) - 2019

Robolectric
 to 
see how to unit test the 
model
 portion of the program.
Unit Tes/ng with Robolectric
You're able to view the contents of the database using the command line or a third-
party tool. Wouldn't it also be nice to run a JUnit test on the model portion of the 
app? This can often be overlooked in the development and testing process.
To create some simple unit tests, you will use a framework called 
Robolectric

Simply put, Robolectric is a framework that allows you to write Android-powered 
unit tests and run them on a desktop JVM while still using the Android API. 
Robolectric enables you to run your Android tests in your integration environment 
without any additional setup, which makes it a convenient choice.
Saving Data on Android
Chapter 3: SQLite Database
raywenderlich.com
64


Now, you will create a unit test to test the 
insert
 functionality of the database to 
determine if the names of the TODO items are inserting into the database correctly.
To get started, open 

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   66   67   68   69   70   71   72   73   ...   292




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish