Your SlideShare is downloading. ×
0
Test Driven Development with Java
Test Driven Development with Java
Test Driven Development with Java
Test Driven Development with Java
Test Driven Development with Java
Test Driven Development with Java
Test Driven Development with Java
Test Driven Development with Java
Test Driven Development with Java
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Test Driven Development with Java

872

Published on

Test Driven Development with Java. …

Test Driven Development with Java.

Presentation given by Edouard SWIAC the 15/12/2010 at SUPINFO San Francisco.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
872
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript

    • 1. Test-driven development with Java Edouard SWIAC Java Lab SF - javalabsf@googlegroups.com
    • 2. Summary• Principles• Mocks and stubs• TDD example
    • 3. repeittion of very What is TDD ?short dev cycle of 3stepstest come from storyrefactorchanging sourcewithout modifyingexternal functional Software development process in 3 stepsbehavior
    • 4. because you have to design thecomponent before you code, TDD in shortand note design the componentwhile you code • Encourages simple design (Ken Beck) • Relies on automated unit testing • Builds a harness against software regression
    • 5. although required,dependencies and Testing and collaboratorscollaborators needs to bereplace by somethin • Testing a unit of code is not testing its collaborators • Collaborators have to be reproduced and controlled to produce expected results so tests can run => enter mocks !
    • 6. Stubs and mocks stub on existing code or yet to be code mock help to test behavior• A stub (or method stub) returns programmed results when called• A mock (or mock object) mimics a real object. It has the same interface as the real objects it mimics.• Mocks methods can be stubbed
    • 7. TDD in action• Demo !
    • 8. More information• Article: Mocks aren’t stubs (M. Fowler)• Wikipedia: TDD• Agile manifesto
    • 9. Thank you !• Questions ?• Java lab mailing list: javalabsf@googlegroups.com

    ×