SlideShare uma empresa Scribd logo
1 de 20
Unit Tests and Mocks libraries Guillaume Carre May 2008 XP Day Paris Certified ScrumMaster
Agenda ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Introduction ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Unit Tests  / Integration Tests ,[object Object],[object Object],[object Object]
Unit Tests: test code in isolation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Unit tests and Mock objects ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Benefits from using Mock objects ,[object Object],[object Object],[object Object],[object Object],[object Object]
Code example ,[object Object],[object Object],[object Object]
Mocks libraries ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Without mock objects
With mock objects (EasyMock)
Usage 1/3 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Usage 2/3 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Usage 3/3 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Mocks libraries roundup ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Mocks & TDD ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Cons ,[object Object],[object Object]
Links ,[object Object],[object Object],[object Object],[object Object],[object Object]
Conclusion ,[object Object],[object Object],[object Object]
Questions ,[object Object]

Mais conteúdo relacionado

Mais procurados

Introduction To J unit
Introduction To J unitIntroduction To J unit
Introduction To J unit
Olga Extone
 
Mockito vs JMockit, battle of the mocking frameworks
Mockito vs JMockit, battle of the mocking frameworksMockito vs JMockit, battle of the mocking frameworks
Mockito vs JMockit, battle of the mocking frameworks
EndranNL
 

Mais procurados (20)

JMockit
JMockitJMockit
JMockit
 
J Unit
J UnitJ Unit
J Unit
 
Junit 4.0
Junit 4.0Junit 4.0
Junit 4.0
 
Unit Testing Concepts and Best Practices
Unit Testing Concepts and Best PracticesUnit Testing Concepts and Best Practices
Unit Testing Concepts and Best Practices
 
JUnit Presentation
JUnit PresentationJUnit Presentation
JUnit Presentation
 
Why Unit Testingl
Why Unit TestinglWhy Unit Testingl
Why Unit Testingl
 
Unit Testing
Unit TestingUnit Testing
Unit Testing
 
Unit Tests And Automated Testing
Unit Tests And Automated TestingUnit Tests And Automated Testing
Unit Tests And Automated Testing
 
How and what to unit test
How and what to unit testHow and what to unit test
How and what to unit test
 
Introduction To J unit
Introduction To J unitIntroduction To J unit
Introduction To J unit
 
Unit testing with Junit
Unit testing with JunitUnit testing with Junit
Unit testing with Junit
 
Automated Unit Testing
Automated Unit TestingAutomated Unit Testing
Automated Unit Testing
 
Test driven development - JUnit basics and best practices
Test driven development - JUnit basics and best practicesTest driven development - JUnit basics and best practices
Test driven development - JUnit basics and best practices
 
Java Unit Testing
Java Unit TestingJava Unit Testing
Java Unit Testing
 
Mockito vs JMockit, battle of the mocking frameworks
Mockito vs JMockit, battle of the mocking frameworksMockito vs JMockit, battle of the mocking frameworks
Mockito vs JMockit, battle of the mocking frameworks
 
Best practices unit testing
Best practices unit testing Best practices unit testing
Best practices unit testing
 
Junit
JunitJunit
Junit
 
.Net Unit Testing with Visual Studio 2010
.Net Unit Testing with Visual Studio 2010.Net Unit Testing with Visual Studio 2010
.Net Unit Testing with Visual Studio 2010
 
N Unit Presentation
N Unit PresentationN Unit Presentation
N Unit Presentation
 
JMockit Framework Overview
JMockit Framework OverviewJMockit Framework Overview
JMockit Framework Overview
 

Destaque

Powe R Poin T
Powe R Poin TPowe R Poin T
Powe R Poin T
Stefano31
 
Annotated bibliography presentation
Annotated bibliography presentationAnnotated bibliography presentation
Annotated bibliography presentation
FelixWilson
 
Finito, lavoro italiano
Finito, lavoro italianoFinito, lavoro italiano
Finito, lavoro italiano
Stefano31
 
My Sales Guru Keeping Sales Focused
My Sales Guru Keeping Sales FocusedMy Sales Guru Keeping Sales Focused
My Sales Guru Keeping Sales Focused
Michael Lang
 

Destaque (19)

From Operational Effectiveness to Service Excellence
From Operational Effectiveness to Service ExcellenceFrom Operational Effectiveness to Service Excellence
From Operational Effectiveness to Service Excellence
 
Creating Value with SAP BusinessObjects Planning and Consolidation, version f...
Creating Value with SAP BusinessObjects Planning and Consolidation, version f...Creating Value with SAP BusinessObjects Planning and Consolidation, version f...
Creating Value with SAP BusinessObjects Planning and Consolidation, version f...
 
Powe R Poin T
Powe R Poin TPowe R Poin T
Powe R Poin T
 
Evsip Corpoverview (1)
Evsip Corpoverview (1)Evsip Corpoverview (1)
Evsip Corpoverview (1)
 
Zavedeni UX do organizace
Zavedeni UX do organizaceZavedeni UX do organizace
Zavedeni UX do organizace
 
Social Media: Oh Where to Begin?
Social Media: Oh Where to Begin?Social Media: Oh Where to Begin?
Social Media: Oh Where to Begin?
 
És Nadal
És NadalÉs Nadal
És Nadal
 
Kneipp douche & body scrubs
Kneipp douche & body scrubsKneipp douche & body scrubs
Kneipp douche & body scrubs
 
ICounting - Change the conversation using measures that matter
ICounting - Change the conversation using measures that matterICounting - Change the conversation using measures that matter
ICounting - Change the conversation using measures that matter
 
Euworld Services 2011
Euworld Services 2011Euworld Services 2011
Euworld Services 2011
 
HOME BUSSINES- MAX GXL ESPANOL
HOME BUSSINES- MAX GXL ESPANOLHOME BUSSINES- MAX GXL ESPANOL
HOME BUSSINES- MAX GXL ESPANOL
 
Annotated bibliography presentation
Annotated bibliography presentationAnnotated bibliography presentation
Annotated bibliography presentation
 
Finito, lavoro italiano
Finito, lavoro italianoFinito, lavoro italiano
Finito, lavoro italiano
 
Vitamine & mineralien
Vitamine & mineralienVitamine & mineralien
Vitamine & mineralien
 
Digitalcommunicationstrategysn 090602093708-phpapp02
Digitalcommunicationstrategysn 090602093708-phpapp02Digitalcommunicationstrategysn 090602093708-phpapp02
Digitalcommunicationstrategysn 090602093708-phpapp02
 
My Sales Guru Keeping Sales Focused
My Sales Guru Keeping Sales FocusedMy Sales Guru Keeping Sales Focused
My Sales Guru Keeping Sales Focused
 
X ray equipment
X ray equipmentX ray equipment
X ray equipment
 
Ondernemerschap Meten In De Cultuursector
Ondernemerschap Meten In De CultuursectorOndernemerschap Meten In De Cultuursector
Ondernemerschap Meten In De Cultuursector
 
Identifying and measuring ic
Identifying and measuring icIdentifying and measuring ic
Identifying and measuring ic
 

Semelhante a Xp Day 080506 Unit Tests And Mocks

Assessing Unit Test Quality
Assessing Unit Test QualityAssessing Unit Test Quality
Assessing Unit Test Quality
guest268ee8
 
Unit Testing Full@
Unit Testing Full@Unit Testing Full@
Unit Testing Full@
Alex Borsuk
 
Using Rhino Mocks for Effective Unit Testing
Using Rhino Mocks for Effective Unit TestingUsing Rhino Mocks for Effective Unit Testing
Using Rhino Mocks for Effective Unit Testing
Mike Clement
 

Semelhante a Xp Day 080506 Unit Tests And Mocks (20)

Mocking with Mockito
Mocking with MockitoMocking with Mockito
Mocking with Mockito
 
Assessing Unit Test Quality
Assessing Unit Test QualityAssessing Unit Test Quality
Assessing Unit Test Quality
 
Unit testing - A&BP CC
Unit testing - A&BP CCUnit testing - A&BP CC
Unit testing - A&BP CC
 
Software Engineering - RS3
Software Engineering - RS3Software Engineering - RS3
Software Engineering - RS3
 
Nguyenvandungb seminar
Nguyenvandungb seminarNguyenvandungb seminar
Nguyenvandungb seminar
 
Grails unit testing
Grails unit testingGrails unit testing
Grails unit testing
 
Effective unit testing
Effective unit testingEffective unit testing
Effective unit testing
 
Easymock Tutorial
Easymock TutorialEasymock Tutorial
Easymock Tutorial
 
Stopping the Rot - Putting Legacy C++ Under Test
Stopping the Rot - Putting Legacy C++ Under TestStopping the Rot - Putting Legacy C++ Under Test
Stopping the Rot - Putting Legacy C++ Under Test
 
Unit Testing Full@
Unit Testing Full@Unit Testing Full@
Unit Testing Full@
 
Unit testing
Unit testingUnit testing
Unit testing
 
Unit Testing Android Applications
Unit Testing Android ApplicationsUnit Testing Android Applications
Unit Testing Android Applications
 
Test-Driven Development
Test-Driven DevelopmentTest-Driven Development
Test-Driven Development
 
Testing Experience - Evolution of Test Automation Frameworks
Testing Experience - Evolution of Test Automation FrameworksTesting Experience - Evolution of Test Automation Frameworks
Testing Experience - Evolution of Test Automation Frameworks
 
A la découverte des google/mock (aka gmock)
A la découverte des google/mock (aka gmock)A la découverte des google/mock (aka gmock)
A la découverte des google/mock (aka gmock)
 
Using Rhino Mocks for Effective Unit Testing
Using Rhino Mocks for Effective Unit TestingUsing Rhino Mocks for Effective Unit Testing
Using Rhino Mocks for Effective Unit Testing
 
Unit Testing
Unit TestingUnit Testing
Unit Testing
 
TDD Workshop UTN 2012
TDD Workshop UTN 2012TDD Workshop UTN 2012
TDD Workshop UTN 2012
 
SE2_Lec 21_ TDD and Junit
SE2_Lec 21_ TDD and JunitSE2_Lec 21_ TDD and Junit
SE2_Lec 21_ TDD and Junit
 
Unit testing basic
Unit testing basicUnit testing basic
Unit testing basic
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Xp Day 080506 Unit Tests And Mocks