Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Great Tools for Engineers - Even Cleaner Tests with Mockito 2

Devoxx via YouTube

Overview

Coursera Spring Sale
40% Off Coursera Plus Annual!
Grab it
Discover how to enhance test clarity and efficiency using the latest Mockito 2 release in this informative conference talk. Explore new features and best practices that increase productivity and simplify troubleshooting. Join Szczepan Faber, creator of Mockito and passionate advocate for engineering tools, as he demonstrates live examples and shares insights from his extensive experience. Learn about debug ability, framework failures, strict mocks, default mocks, lambda strict mocks, and how to fix common issues. Understand why tests fail, the benefits of lenient mocking, and how to handle argument problems. Dive into new behaviors, strict stubbing, and techniques for writing dry tests. Discover how to avoid unnecessary stubbing, leverage stubs effectively, and eliminate redundant interactions. Gain valuable knowledge about additional features that can further improve your testing process.

Syllabus

Intro
Debug ability
Framework failure
Strict Mocks
Default Mocks
lambda
Strict Mock
Fixing a typo
Why the tests are failing
Why Mockito is lenient
Argument problems
New behavior
Strict stabbing
Dry tests
No more interactions
Use stubs
Avoid unnecessary stabbings
Other features
Question

Taught by

Devoxx

Reviews

Start your review of Great Tools for Engineers - Even Cleaner Tests with Mockito 2

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.