Java: tools & techniques for TDD
-
Upload
agileee -
Category
Technology
-
view
2.628 -
download
2
description
Transcript of Java: tools & techniques for TDD
When I codeI write tests
X-unit frameworks
http://mockito.org
substitues of real
objects...
...for testing
purposes
what are mocks?
Szczepan Faber
Coach at Sabre Holdings
Krakow, Poland
Enough jokes, meet your bartender
Java: Tools &
techniques for
TDD
Who does it?
Learning TDD
the student must first resign himself
and his ego to a seemingly random series of repetitious exercises
Yukiyoshi Takamura
Shu Ha Ri
Improving TDD
Stop writing tests
Instead, describe the behavior
Or simply, write examples
http://behaviour-driven.org
Enough slides.Start coding now...
Shu-Ha-Ri
Don’t write tests, write examples
Your takeaways I
Mockito
Custom assertion with FEST
The ultimate test template
Your takeaways II
The ultimate test template@Test
public void should...() throws Exception {
//given
...
//when
...
//then
...
}
Sapir-Whorf Theory
Thanks for surviving the session!
Yummy. No hangover.
(Eastern Europeans only)
• Questions?
• Feedback?
• szczepiq (at) gmail.com