Slide 2:
why we need mocking
Slide 3:
why we need mocking
Slide 4:
why we need mocking
Slide 5:
why we need mocking
Slide 6:
why we need mocking
Slide 7:
why we need mocking
Slide 9:
(…and more)
touching A hot cooker :
public void Touch(Cooker cooker) {
try {
_hand.Touch(cooker); //1
}
catch(BurnException) {
_mouth.Scream(); //2
}
} 1 2 touching A hot cooker
Slide 12:
public void Touch(Cooker cooker) {
try {
_hand.Touch(cooker);
}
catch(BurnException) {
_mouth.Scream();
}
} test in isolation: if BurnException
is thrown, mouth.Scream gets called
http://codevanced.net :
http://codevanced.net
The End :
The End Thanks for images:
Koen Demuynck,
http://colorado.edu,
Auguste Rodin,
http://images.google.com