All language subtitles for 015 Movie Store Store – Part 4 (Task 2 & 3)_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English Download
eo Esperanto Download
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian Download
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

For this solution, we're gonna cover tasks two and three.

Going back to the third test case, we need to write a unit test that expects cell movie to throw an

exception if a movie has already been rented.

So here I can write a unit test that expects an illegal state exception.

Test expected.

And it expects an illegal state exception.

DECLASSE.

The unit test is called Movie Night in Stock.

First, I'll rent The Godfather.

And then I'll try to sell The Godfather.

If I run the test now.

It fails, it's expecting the test to throw in a legal state exception, but it isn't.

And so now we need to make the test pass by throwing an illegal -- exception from sell movie.

If the movie is already rented.

Throw an illegal STD exception.

Rerun the test and perfect.

And just have a look at how clean and elegant the code is, when you write tests, before you write

code, you're being forced to write code that is easy to test.

At the same time, code that is easy to test won't get any bugs.

And now what I'm going to do is run every single test.

They all pass, which means the code inside Staudt Java doesn't have any bugs.

And before we wrap up, just I want you to really appreciate how polished our code is.

Compared the old code with the new code in the old code, the functions were massive, this function

here is impossible to test.

So if you get a bug here, it's going to be really hard to fix.

In general, this is not good coding, but with unit testing, our code is a lot cleaner and immune

to bugs.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.