SlideShare a Scribd company logo
Practical Unit Testing with TestNG and Mockito
http://practicalunittesting.com
By reading this book you will

grasp the role and purpose of unit tests
gain confidence that your code really works
write high-quality, readable and maintainable unit tests
learn TestNG and Mockito                                   http://practicalunittesting.com

avoid common pitfalls when writing unit tests
recognize bad unit tests, and fix them in no time
develop code following the TDD approach
use mocks, stubs and test-spies intelligently
test collections, expected exceptions, time-dependent
methods and much more
master tools and techniques your team members have
never even heard of (priceless!) :)
Some facts about the book:
450+ pages of unit testing goodness (300+ in the
PDF version)
 technologies: TestNG, Mockito, FEST Fluent
Assertions, Unitils, catch-exception, PIT Mutation
Testing, PowerMock, …
contains:                                               http://practicalunittesting.com


 loads of examples
 exercises for each chapter
 best practices, hints, tips, warnings and guidelines
based on real-life experience and issues
written with practical issues specifically in mind
this is the first book about Mockito!
 proofread and corrected by TDD, Mockito and
TestNG experts (and a native speaker, of course!)
What is inside?




                  http://practicalunittesting.com
About the author
Tomek Kaczanowski is a technical team leader from
Krakow, Poland. He has a strong interest in code
quality, testing and automation - preferably all three
together. Combining technical with soft skills, he also
ventures into the realms of mentoring, teaching,
lecturing and article writing, not to mention preaching
sermons to the unconverted in the hope of                 http://practicalunittesting.com

redeeming them (or at least their code)! He hates
doing things manually, and is allergic to empty src/
test/java directories.

Tomek believes that by working with legacy code,
and improving it, he can make the world a better
place. To his disappointment, the world does not
seem to care all that much about his efforts.

Apart from all this weirdness, he is a pretty normal
person – a husband, father of two, and cat owner.
Enjoy the book!

http://practicalunittesting.com

More Related Content

PPTX
Programming the Programmer
PDF
Disarmingly Forthright MSCS Advice
PDF
Code Camp NYC 2017 - How to deal with everything... | Chris Ozog - Codesushi
PDF
Sample Chapter of Practical Unit Testing with TestNG and Mockito
PDF
Test Drive Development
PPT
TDD - Christchurch APN May 2012
PPTX
Test driven development(tdd)
PDF
Java Beginners Meetup February 2017: Testing and TDD
Programming the Programmer
Disarmingly Forthright MSCS Advice
Code Camp NYC 2017 - How to deal with everything... | Chris Ozog - Codesushi
Sample Chapter of Practical Unit Testing with TestNG and Mockito
Test Drive Development
TDD - Christchurch APN May 2012
Test driven development(tdd)
Java Beginners Meetup February 2017: Testing and TDD

Similar to Practical Unit Testing with TestNG and Mockito (20)

PPTX
Anatomy of Test Driven Development
PDF
[DevDay 2016] Real Unit Testing with mocking framework - Speaker: Phat Vu – S...
PPTX
Unit Testing talk
ODP
xUnit and TDD: Why and How in Enterprise Software, August 2012
PPTX
Test Driven Development on Android (Kotlin Kenya)
PDF
Test Driven Development (TDD)
PDF
Devday2016 real unittestingwithmockframework-phatvu
PPTX
The Test way
PPTX
Type mock isolator
PPTX
VT.NET 20160411: An Intro to Test Driven Development (TDD)
PPTX
Test-Driven Development In Action
PDF
TDD Workshop UTN 2012
PPTX
TDD Training
PPTX
Test-Driven Development
PDF
Unit testing (Exploring the other side as a tester)
PDF
Sustainable TDD
ODP
Embrace Unit Testing
PDF
An Introduction to Test Driven Development
PDF
Unit Testing Best Practices
ODP
Effective TDD - Less is more
Anatomy of Test Driven Development
[DevDay 2016] Real Unit Testing with mocking framework - Speaker: Phat Vu – S...
Unit Testing talk
xUnit and TDD: Why and How in Enterprise Software, August 2012
Test Driven Development on Android (Kotlin Kenya)
Test Driven Development (TDD)
Devday2016 real unittestingwithmockframework-phatvu
The Test way
Type mock isolator
VT.NET 20160411: An Intro to Test Driven Development (TDD)
Test-Driven Development In Action
TDD Workshop UTN 2012
TDD Training
Test-Driven Development
Unit testing (Exploring the other side as a tester)
Sustainable TDD
Embrace Unit Testing
An Introduction to Test Driven Development
Unit Testing Best Practices
Effective TDD - Less is more
Ad

More from Tomek Kaczanowski (10)

PDF
2015 ACE! Conference slides
PDF
Grupowe podejmowanie decyzji
PDF
2013 DevFest Vienna - Bad Tests, Good Tests
PDF
33rd Degree 2013, Bad Tests, Good Tests
PPT
2012 JDays Bad Tests Good Tests
PDF
Confitura 2012 Bad Tests, Good Tests
PDF
GeeCON 2012 Bad Tests, Good Tests
PDF
GeeCON 2011 Who Watches The Watchmen? - On Quality Of Tests
ODP
Convention Over Configuration - Maven 3, Polyglot Maven, Gradle and Ant
PDF
Gradle talk, Javarsovia 2010
2015 ACE! Conference slides
Grupowe podejmowanie decyzji
2013 DevFest Vienna - Bad Tests, Good Tests
33rd Degree 2013, Bad Tests, Good Tests
2012 JDays Bad Tests Good Tests
Confitura 2012 Bad Tests, Good Tests
GeeCON 2012 Bad Tests, Good Tests
GeeCON 2011 Who Watches The Watchmen? - On Quality Of Tests
Convention Over Configuration - Maven 3, Polyglot Maven, Gradle and Ant
Gradle talk, Javarsovia 2010
Ad

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Network Security Unit 5.pdf for BCA BBA.
PPT
Teaching material agriculture food technology
PPTX
Understanding_Digital_Forensics_Presentation.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Modernizing your data center with Dell and AMD
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Encapsulation theory and applications.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Big Data Technologies - Introduction.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Mobile App Security Testing_ A Comprehensive Guide.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
MYSQL Presentation for SQL database connectivity
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Network Security Unit 5.pdf for BCA BBA.
Teaching material agriculture food technology
Understanding_Digital_Forensics_Presentation.pptx
The AUB Centre for AI in Media Proposal.docx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Modernizing your data center with Dell and AMD
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Machine learning based COVID-19 study performance prediction
Advanced methodologies resolving dimensionality complications for autism neur...
Encapsulation theory and applications.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Per capita expenditure prediction using model stacking based on satellite ima...
Empathic Computing: Creating Shared Understanding
Big Data Technologies - Introduction.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing

Practical Unit Testing with TestNG and Mockito

  • 3. By reading this book you will grasp the role and purpose of unit tests gain confidence that your code really works write high-quality, readable and maintainable unit tests learn TestNG and Mockito http://practicalunittesting.com avoid common pitfalls when writing unit tests recognize bad unit tests, and fix them in no time develop code following the TDD approach use mocks, stubs and test-spies intelligently test collections, expected exceptions, time-dependent methods and much more master tools and techniques your team members have never even heard of (priceless!) :)
  • 4. Some facts about the book: 450+ pages of unit testing goodness (300+ in the PDF version) technologies: TestNG, Mockito, FEST Fluent Assertions, Unitils, catch-exception, PIT Mutation Testing, PowerMock, … contains: http://practicalunittesting.com loads of examples exercises for each chapter best practices, hints, tips, warnings and guidelines based on real-life experience and issues written with practical issues specifically in mind this is the first book about Mockito! proofread and corrected by TDD, Mockito and TestNG experts (and a native speaker, of course!)
  • 5. What is inside? http://practicalunittesting.com
  • 6. About the author Tomek Kaczanowski is a technical team leader from Krakow, Poland. He has a strong interest in code quality, testing and automation - preferably all three together. Combining technical with soft skills, he also ventures into the realms of mentoring, teaching, lecturing and article writing, not to mention preaching sermons to the unconverted in the hope of http://practicalunittesting.com redeeming them (or at least their code)! He hates doing things manually, and is allergic to empty src/ test/java directories. Tomek believes that by working with legacy code, and improving it, he can make the world a better place. To his disappointment, the world does not seem to care all that much about his efforts. Apart from all this weirdness, he is a pretty normal person – a husband, father of two, and cat owner.